LineDelimiter

A delimiter which is appended to the end of a text line, such as <tt>CR/LF</tt>. This class defines default delimiters for various OS : <ul> <li><b>Unix/Linux</b> : LineDelimiter.UNIX ("\n")</li> <li><b>Windows</b> : LineDelimiter.WINDOWS ("\r\n")</li> <li><b>MAC</b> : LineDelimiter.MAC ("\r")</li> </ul>

@author <a href="http://mina.apache.org">Apache MINA Project</a>

Constructors

this
this(string value)

Creates a new line delimiter with the specified <tt>value</tt>.

Members

Functions

getValue
string getValue()

@return the delimiter string.

opEquals
bool opEquals(LineDelimiter o)

{@inheritDoc}

toHash
size_t toHash()

{@inheritDoc}

toString
string toString()

{@inheritDoc}

Variables

AUTO
enum LineDelimiter AUTO;

A special line delimiter which is used for auto-detection of EOL in {@link TextLineDecoder}. If this delimiter is used, {@link TextLineDecoder} will consider both <tt>'\r'</tt> and <tt>'\n'</tt> as a delimiter.

CRLF
enum LineDelimiter CRLF;

The CRLF line delimiter constant (<tt>"\r\n"</tt>)

DEFAULT
enum LineDelimiter DEFAULT;

the line delimiter constant of the current O/S.

MAC
enum LineDelimiter MAC;

The line delimiter constant of Mac OS (<tt>"\r"</tt>)

NUL
enum LineDelimiter NUL;

The line delimiter constant for NUL-terminated text protocols such as Flash XML socket (<tt>"\0"</tt>)

UNIX
enum LineDelimiter UNIX;

The line delimiter constant of UNIX (<tt>"\n"</tt>)

WINDOWS
enum LineDelimiter WINDOWS;

The line delimiter constant of MS Windows/DOS (<tt>"\r\n"</tt>)

Meta