public final class FileFormat
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static FileFormat |
AUTO
Indicates that the file format should be auto-detected.
|
static FileFormat |
DEFAULT
Represents the platform default file format.
|
static FileFormat |
DOS
Represents the DOS file format ("\r\n").
|
static FileFormat |
MAC
Represents the Mac file format ("\r").
|
static FileFormat |
UNIX
Represents the Unix file format ("\n").
|
static FileFormat |
UNKNOWN
Represents an unknown or not yet determined file format.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getLineSeparator()
Returns the characteristic line separator of the file format.
|
java.lang.String |
getName()
Returns the descriptive name of the file format.
|
java.lang.String |
toString()
Returns a string representation of this object.
|
static FileFormat |
valueOf(java.lang.String format)
Returns the FileFormat object for the given file format string.
|
public static final FileFormat DEFAULT
public static final FileFormat AUTO
public static final FileFormat DOS
public static final FileFormat MAC
public static final FileFormat UNIX
public static final FileFormat UNKNOWN
public java.lang.String getLineSeparator()
UNKNOWN
and AUTO
does not have distinct line separators and
therefore rather return the platform default separator.public java.lang.String getName()
public static FileFormat valueOf(java.lang.String format)
format
- a valid format string. Either "\r\n" or "DOS",
"\n" or "UNIX", "\r" or "MAC",
"auto" or "default" (case-insensitive).DEFAULT
if format == null or format does not denote a
valid file format string.public java.lang.String toString()
toString
in class java.lang.Object
getLineSeparator()
Submit a bug or feature.
For further information and documentation, visit the official Jalopy website.
This page generated: March 30 2013