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.
-
-
Field Summary
Fields Modifier and Type Field Description static LineDelimiter
AUTO
A special line delimiter which is used for auto-detection of EOL inTextLineDecoder
.static LineDelimiter
DEFAULT
the line delimiter constant of the current O/S.static LineDelimiter
MAC
The line delimiter constant of Mac OS ("\r")static LineDelimiter
UNIX
The line delimiter constant of UNIX ("\n")static LineDelimiter
WINDOWS
The line delimiter constant of MS Windows/DOS ("\r\n")
-
Constructor Summary
Constructors Constructor Description LineDelimiter(java.lang.String value)
Creates a new line delimiter with the specified value.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
java.lang.String
getValue()
Return the delimiter string.int
hashCode()
java.lang.String
toString()
-
-
-
Field Detail
-
DEFAULT
public static final LineDelimiter DEFAULT
the line delimiter constant of the current O/S.
-
AUTO
public static final LineDelimiter AUTO
A special line delimiter which is used for auto-detection of EOL inTextLineDecoder
. If this delimiter is used,TextLineDecoder
will consider both '\r' and '\n' as a delimiter.
-
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")
-
MAC
public static final LineDelimiter MAC
The line delimiter constant of Mac OS ("\r")
-
-
Method Detail
-
getValue
public java.lang.String getValue()
Return the delimiter string.
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-