|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.mindprod.common11.Localise
public class Localise
Miscellaneous static methods localising an app to a particular platform under JDK 1.1+.
There is a more efficient implementation of localise at com.mindprod.common15.Localise for JDK 1.5+.
Field Summary | |
---|---|
protected static java.lang.String |
lineSeparator
lineSeparator using now. |
Constructor Summary | |
---|---|
Localise()
|
Method Summary | |
---|---|
static java.lang.String |
localise(java.lang.String s)
converts \n in String to configurable local line separator. |
static void |
setLineSeparator(java.lang.String lineSeparator)
Use a line separator other than the system default. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static java.lang.String lineSeparator
Constructor Detail |
---|
public Localise()
Method Detail |
---|
public static java.lang.String localise(java.lang.String s)
s
- string with possible \ns embedded.
public static void setLineSeparator(java.lang.String lineSeparator)
lineSeparator
- Sequence to separate lines. usually Windows: "\r\n" Unix: "\n" or Mac: "\r". But could be
anything.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |