|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.exist.util.XMLUtil
Description of the Class
Constructor Summary | |
XMLUtil()
|
Method Summary | |
static void |
copyChildren(org.w3c.dom.Document new_doc,
org.w3c.dom.Node node,
org.w3c.dom.Node new_node)
Description of the Method |
static org.w3c.dom.Node |
copyNode(org.w3c.dom.Document new_doc,
org.w3c.dom.Node node)
Description of the Method |
static java.lang.String |
decodeAttrMarkup(java.lang.String str)
|
static java.lang.String |
dump(org.w3c.dom.DocumentFragment fragment)
|
static java.lang.String |
encodeAttrMarkup(java.lang.String str)
Description of the Method |
static java.lang.String |
exceptionToString(java.lang.Throwable e)
Description of the Method |
static java.lang.String |
getEncoding(java.lang.String xmlDecl)
Gets the encoding attribute of the XMLUtil class |
static long |
getFirstChildId(DocumentImpl doc,
long gid)
|
static long |
getFirstChildId(DocumentImpl doc,
long gid,
int level)
Gets the firstChildId attribute of the XMLUtil class |
static long |
getParentId(DocumentImpl doc,
long gid)
|
static long |
getParentId(DocumentImpl doc,
long gid,
int level)
|
static java.lang.String |
getXMLDecl(byte[] data)
Gets the encoding attribute of the XMLUtil class |
static boolean |
isDescendantOrSelf(DocumentImpl doc,
long ancestor,
long descendant)
|
static void |
main(java.lang.String[] args)
The main program for the XMLUtil class |
static java.lang.String |
parseValue(java.lang.String value,
int p)
|
static java.lang.String |
parseValue(java.lang.String value,
java.lang.String key)
|
static java.lang.String |
readFile(java.io.File file)
Description of the Method |
static java.lang.String |
readFile(java.io.File file,
java.lang.String defaultEncoding)
Description of the Method |
static java.lang.String |
readFile(java.io.InputStream in,
java.lang.String defaultEncoding)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public XMLUtil()
Method Detail |
public static final java.lang.String dump(org.w3c.dom.DocumentFragment fragment)
public static final void copyChildren(org.w3c.dom.Document new_doc, org.w3c.dom.Node node, org.w3c.dom.Node new_node)
new_doc
- Description of the Parameternode
- Description of the Parameternew_node
- Description of the Parameterpublic static final org.w3c.dom.Node copyNode(org.w3c.dom.Document new_doc, org.w3c.dom.Node node)
new_doc
- Description of the Parameternode
- Description of the Parameter
public static final java.lang.String encodeAttrMarkup(java.lang.String str)
str
- Description of the Parameter
public static final java.lang.String decodeAttrMarkup(java.lang.String str)
public static final java.lang.String exceptionToString(java.lang.Throwable e)
e
- Description of the Parameter
public static final java.lang.String getEncoding(java.lang.String xmlDecl)
xmlDecl
- Description of the Parameter
public static final long getFirstChildId(DocumentImpl doc, long gid)
public static final long getFirstChildId(DocumentImpl doc, long gid, int level)
doc
- Description of the Parametergid
- Description of the Parameter
public static final long getParentId(DocumentImpl doc, long gid)
public static final long getParentId(DocumentImpl doc, long gid, int level)
public static final boolean isDescendantOrSelf(DocumentImpl doc, long ancestor, long descendant)
public static final java.lang.String getXMLDecl(byte[] data)
data
- Description of the Parameter
public static void main(java.lang.String[] args)
args
- The command line argumentspublic static final java.lang.String readFile(java.io.File file) throws java.io.IOException
file
- Description of the Parameter
java.io.IOException
- Description of the Exceptionpublic static java.lang.String readFile(java.io.File file, java.lang.String defaultEncoding) throws java.io.IOException
file
- Description of the ParameterdefaultEncoding
- Description of the Parameter
java.io.IOException
- Description of the Exceptionpublic static java.lang.String readFile(java.io.InputStream in, java.lang.String defaultEncoding) throws java.io.IOException
java.io.IOException
public static java.lang.String parseValue(java.lang.String value, java.lang.String key)
public static java.lang.String parseValue(java.lang.String value, int p)
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |