org.apache.mina.filter.codec.textline
Class LineDelimiter
java.lang.Object
org.apache.mina.filter.codec.textline.LineDelimiter
public class LineDelimiter
extends java.lang.Object
A delimiter which is appended to the end of a text line, such as
CR/LF.
LineDelimiter(String value) - Creates a new line delimiter with the specified value.
|
AUTO
public static final LineDelimiter AUTO
A special line delimiter which is used for auto-detection of
EOL in
TextLineDecoder
. If this delimiter is used,
TextLineDecoder
will consider both
'\r' and
'\n' as a delimiter.
DEFAULT
public static final LineDelimiter DEFAULT
the line delimiter constant of the current O/S.
MAC
public static final LineDelimiter MAC
The line delimiter constant of Mac OS ("\r")
UNIX
public static final LineDelimiter UNIX
The line delimiter constant of UNIX ("\n")
WINDOWS
public static final LineDelimiter WINDOWS
The line delimiter constant of MS Windows/DOS ("\r\n")
LineDelimiter
public LineDelimiter(String value)
Creates a new line delimiter with the specified value.
equals
public boolean equals(Object o)
getValue
public String getValue()
Return the delimiter string.
hashCode
public int hashCode()
toString
public String toString()