Class LineDelimiter
- java.lang.Object
-
- org.apache.mina.filter.codec.textline.LineDelimiter
-
public class LineDelimiter extends Object
A delimiter which is appended to the end of a text line, such asCR/LF. This class defines default delimiters for various OS :- Unix/Linux : LineDelimiter.UNIX ("\n")
- Windows : LineDelimiter.WINDOWS ("\r\n")
- MAC : LineDelimiter.MAC ("\r")
- Author:
- Apache MINA Project
-
-
Field Summary
Fields Modifier and Type Field Description static LineDelimiterAUTOA special line delimiter which is used for auto-detection of EOL inTextLineDecoder.static LineDelimiterCRLFThe CRLF line delimiter constant ("\r\n")static LineDelimiterDEFAULTthe line delimiter constant of the current O/S.static LineDelimiterMACThe line delimiter constant of Mac OS ("\r")static LineDelimiterNULThe line delimiter constant for NUL-terminated text protocols such as Flash XML socket ("\0")static LineDelimiterUNIXThe line delimiter constant of UNIX ("\n")static LineDelimiterWINDOWSThe line delimiter constant of MS Windows/DOS ("\r\n")
-
Constructor Summary
Constructors Constructor Description LineDelimiter(String value)Creates a new line delimiter with the specifiedvalue.
-
-
-
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,TextLineDecoderwill consider both'\r'and'\n'as a delimiter.
-
CRLF
public static final LineDelimiter CRLF
The CRLF line delimiter constant ("\r\n")
-
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")
-
NUL
public static final LineDelimiter NUL
The line delimiter constant for NUL-terminated text protocols such as Flash XML socket ("\0")
-
-
Constructor Detail
-
LineDelimiter
public LineDelimiter(String value)
Creates a new line delimiter with the specifiedvalue.- Parameters:
value- The new Line Delimiter
-
-