|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.gridsystems.utils.text.EOLUtils
public final class EOLUtils
End-Of-Line Management Utilities.
| Field Summary | |
|---|---|
static int |
DOS
DOS scheme. |
static int |
MAC
Mac scheme. |
static java.lang.String[] |
SCHEMENAMES
String constants with the names of the different EOL schemes, indexed using the above constants. |
static int |
UNDEFINED
Undefined scheme. |
static int |
UNIX
Unix scheme. |
| Method Summary | |
|---|---|
static void |
applyEOL(java.io.File source,
int scheme)
Applies a scheme of EOL to the source text file. |
static java.lang.String |
applyEOL(java.lang.String source,
int scheme)
Applies a scheme of EOL to the source. |
static int |
detectEOL(java.io.File source)
Detects what kind of EOL is present in the source text file. |
static int |
detectEOL(java.lang.String source)
Detects what kind of EOL is present in the source String. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int UNIX
public static final int DOS
public static final int MAC
public static final int UNDEFINED
public static final java.lang.String[] SCHEMENAMES
| Method Detail |
|---|
public static int detectEOL(java.lang.String source)
source - text to analyze
public static int detectEOL(java.io.File source)
throws java.io.IOException
source - text file to analyze
java.io.IOException - if error
public static java.lang.String applyEOL(java.lang.String source,
int scheme)
source - text to convertscheme - of EOL to apply
public static void applyEOL(java.io.File source,
int scheme)
throws java.io.IOException
source - text file to convertscheme - of EOL to apply
java.io.IOException - if error
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||