public class LineDelimiter extends Object
CR/LF. This class defines default delimiters for various
OS :
| Modifier and Type | Field and Description |
|---|---|
static LineDelimiter |
AUTO
A special line delimiter which is used for auto-detection of
EOL in
TextLineDecoder. |
static LineDelimiter |
CRLF
The CRLF line delimiter constant (
"\r\n") |
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 |
NUL
The line delimiter constant for NUL-terminated text protocols
such as Flash XML socket (
"\0") |
static LineDelimiter |
UNIX
The line delimiter constant of UNIX (
"\n") |
static LineDelimiter |
WINDOWS
The line delimiter constant of MS Windows/DOS (
"\r\n") |
| Constructor and Description |
|---|
LineDelimiter(String value)
Creates a new line delimiter with the specified
value. |
public static final LineDelimiter DEFAULT
public static final LineDelimiter AUTO
TextLineDecoder. If this delimiter is used,
TextLineDecoder will consider both '\r' and
'\n' as a delimiter.public static final LineDelimiter CRLF
"\r\n")public static final LineDelimiter UNIX
"\n")public static final LineDelimiter WINDOWS
"\r\n")public static final LineDelimiter MAC
"\r")public static final LineDelimiter NUL
"\0")public LineDelimiter(String value)
value.value - The new Line DelimiterCopyright © 2004–2024 Apache MINA Project. All rights reserved.