|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--gate.util.Strings
Some utilities for use with Strings.
Field Summary | |
private static boolean |
DEBUG
Debug flag |
private static String |
fileSep
Local fashion for file separators. |
private static String |
newline
Local fashion for newlines this year. |
private static char |
padChar
What character to pad with. |
private static String |
pathSep
Local fashion for path separators. |
Constructor Summary | |
Strings()
|
Method Summary | |
static String |
addLineNumbers(String text)
Helper method to add line numbers to a string |
static String |
addPadding(String pad,
int n)
Add n pad characters to pad. |
static String |
getFileSep()
Get local fashion for file separators (e.g. |
static String |
getNl()
Get local fashion for newlines. |
static String |
getPathSep()
Get local fashion for path separators (e.g. |
Methods inherited from class java.lang.Object |
|
Field Detail |
private static final boolean DEBUG
private static char padChar
private static String newline
private static String pathSep
private static String fileSep
Constructor Detail |
public Strings()
Method Detail |
public static String getNl()
public static String getPathSep()
public static String getFileSep()
public static String addPadding(String pad, int n)
public static String addLineNumbers(String text)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |