public class LineDelimiter
extends java.lang.Object
Modifier and Type | Field | Description |
---|---|---|
static LineDelimiter |
AUTO |
A special line delimiter which is used for auto-detection of
EOL in
TextLineDecoder . |
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 |
UNIX |
The line delimiter constant of UNIX ("\n")
|
static LineDelimiter |
WINDOWS |
The line delimiter constant of MS Windows/DOS ("\r\n")
|
Constructor | Description |
---|---|
LineDelimiter(java.lang.String value) |
Creates a new line delimiter with the specified value.
|
Modifier and Type | Method | Description |
---|---|---|
boolean |
equals(java.lang.Object o) |
|
java.lang.String |
getValue() |
Return the delimiter string.
|
int |
hashCode() |
|
java.lang.String |
toString() |
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 UNIX
public static final LineDelimiter WINDOWS
public static final LineDelimiter MAC
public LineDelimiter(java.lang.String value)
public java.lang.String getValue()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object