Class LineDelimiter
java.lang.Object
org.apache.mina.filter.codec.textline.LineDelimiter
A delimiter which is appended to the end of a text line, such as
CR/LF. This class defines default delimiters for various
OS :
- Unix/Linux : LineDelimiter.UNIX ("\n")
- Windows : LineDelimiter.WINDOWS ("\r\n")
- MAC : LineDelimiter.MAC ("\r")
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final LineDelimiterA special line delimiter which is used for auto-detection of EOL inTextLineDecoder.static final LineDelimiterThe CRLF line delimiter constant ("\r\n")static final LineDelimiterthe line delimiter constant of the current O/S.static final LineDelimiterThe line delimiter constant of Mac OS ("\r")static final LineDelimiterThe line delimiter constant for NUL-terminated text protocols such as Flash XML socket ("\0")static final LineDelimiterThe line delimiter constant of UNIX ("\n")private final StringStores the selected Line delimiterstatic final LineDelimiterThe line delimiter constant of MS Windows/DOS ("\r\n") -
Constructor Summary
ConstructorsConstructorDescriptionLineDelimiter(String value) Creates a new line delimiter with the specifiedvalue. -
Method Summary
-
Field Details
-
DEFAULT
the line delimiter constant of the current O/S. -
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
The CRLF line delimiter constant ("\r\n") -
UNIX
The line delimiter constant of UNIX ("\n") -
WINDOWS
The line delimiter constant of MS Windows/DOS ("\r\n") -
MAC
The line delimiter constant of Mac OS ("\r") -
NUL
The line delimiter constant for NUL-terminated text protocols such as Flash XML socket ("\0") -
value
Stores the selected Line delimiter
-
-
Constructor Details
-
LineDelimiter
Creates a new line delimiter with the specifiedvalue.- Parameters:
value- The new Line Delimiter
-
-
Method Details
-
getValue
- Returns:
- the delimiter string.
-
hashCode
-
equals
-
toString
-