public class LineDelimiter extends Object
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
public static final LineDelimiter UNIX
public static final LineDelimiter WINDOWS
public static final LineDelimiter MAC
public static final LineDelimiter NUL
public LineDelimiter(String value)
value
- The new Line DelimiterCopyright © 2004–2022 Apache MINA Project. All rights reserved.