public final class LineSeparator
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static LineSeparator |
DEFAULT
The default line separator in the current system.
|
static LineSeparator |
UNIX
The Unix line separator(LF)
|
private java.lang.String |
value |
static LineSeparator |
WINDOWS
The Windows line separator(CRLF)
|
Constructor and Description |
---|
LineSeparator(java.lang.String lineSeparator)
Create
LineSeparator with the specified lineSeparator string. |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
int |
hashCode() |
java.lang.String |
toString()
Return a hex dump of the line separator in UTF-8 encoding.
|
java.lang.String |
value()
Return the string value of this line separator.
|
public static final LineSeparator DEFAULT
public static final LineSeparator UNIX
public static final LineSeparator WINDOWS
private final java.lang.String value
public LineSeparator(java.lang.String lineSeparator)
LineSeparator
with the specified lineSeparator
string.public java.lang.String value()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object