public enum StandardLineSeparator extends java.lang.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(java.nio.charset.Charset charset)
Gets the bytes for this instance encoded using the given Charset.
|
java.lang.String |
getString()
Gets the String value of this instance.
|
static StandardLineSeparator |
valueOf(java.lang.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(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic byte[] getBytes(java.nio.charset.Charset charset)
charset
- the encoding Charset.public java.lang.String getString()
Copyright © 2010 - 2023 Adobe. All Rights Reserved