|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.haphazard.XML.XML
Static class for common XMLoperations
Field Summary | |
static java.lang.String |
INDENT
A String with empty spaces to facilitate the indentation of a generated file |
Constructor Summary | |
XML()
|
Method Summary | |
static java.lang.String |
getHeader(java.lang.String rootElement,
java.lang.String publicID)
Gets the header for the xml-file |
static java.lang.String |
indent(int indentLevel)
Fixes indentation in the string |
static java.lang.String |
nl()
Gets the systems newline character |
static java.lang.String |
toXML(java.lang.String str)
Replaces characters that interferes with XML parsing to their ISO equivalents. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static java.lang.String INDENT
Constructor Detail |
public XML()
Method Detail |
public static java.lang.String getHeader(java.lang.String rootElement, java.lang.String publicID)
rootElement
- The root XML element of the file.publicID
- The name of the dtd.
public static java.lang.String indent(int indentLevel)
indentLevel
- Which level the string should be indented as. Each
level is represented by 2 spaces.
public static java.lang.String nl()
public static java.lang.String toXML(java.lang.String str)
str
- The string to check and replace
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |