|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sony.csl.j2me.utils.io.XMLUtils
public class XMLUtils
A class with helpful methods for dealing with XML
Constructor Summary | |
---|---|
XMLUtils()
|
Method Summary | |
---|---|
static java.lang.String |
comment(java.lang.String text,
int tabs)
Returns an XML comment string with the given text and the given number of tabs in front |
static java.lang.String |
escapeCharacters(java.lang.String input)
Replaces reserved XML characters with escapes |
static java.lang.String |
timeDateValue(long timeStamp)
Converts a long timestamp to a string in XML dateTime format: - YYYY-MM-DDThh:mm:ssZ format for UTC times - YYYY-MM-DDThh:mm:sszzzzzz format for non-UTC times, where zzzzzz represents ±hh:mm in relation to UTC Info: - http://code.google.com/apis/kml/documentation/kmlreference.html#timestamp - http://code.google.com/apis/kml/documentation/time.html |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public XMLUtils()
Method Detail |
---|
public static java.lang.String comment(java.lang.String text, int tabs)
text
- tabs
-
public static java.lang.String escapeCharacters(java.lang.String input)
input
- a String to process
public static java.lang.String timeDateValue(long timeStamp)
timeStamp
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |