public enum StandardLineSeparator extends Enum<StandardLineSeparator>
Enum Constant and Description |
---|
CR
Carriage return.
|
CRLF
Carriage return followed by line feed.
|
LF
Line feed.
|
Modifier and Type | Method and Description |
---|---|
byte[] |
getBytes(Charset charset)
Gets the bytes for this instance encoded using the given Charset.
|
String |
getString()
Gets the String value of this instance.
|
static StandardLineSeparator |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static StandardLineSeparator[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final StandardLineSeparator CR
public static final StandardLineSeparator CRLF
public static final StandardLineSeparator LF
public static StandardLineSeparator[] values()
for (StandardLineSeparator c : StandardLineSeparator.values()) System.out.println(c);
public static StandardLineSeparator valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic byte[] getBytes(Charset charset)
charset
- the encoding Charset.public String getString()
Copyright © 2002–2021 The Apache Software Foundation. All rights reserved.