|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.security.integration.password.DocumentUtil
public class DocumentUtil
Utility dealing with DOM
Constructor Summary | |
---|---|
DocumentUtil()
|
Method Summary | |
---|---|
static Document |
createDocument()
Create a new document |
static Document |
getDocument(File file)
Get Document from a file |
static Document |
getDocument(InputStream is)
Get Document from an inputstream |
static Document |
getDocument(Reader reader)
Parse a document from a reader |
static Document |
getDocument(String docString)
Parse a document from the string |
static String |
getDocumentAsString(Document signedDoc)
Marshall a document into a String |
static String |
getDOMElementAsString(Element element)
Marshall a DOM Element as string |
static InputStream |
getNodeAsStream(Node node)
Stream a DOM Node as an input stream |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DocumentUtil()
Method Detail |
---|
public static Document createDocument() throws Exception
Exception
public static Document getDocument(String docString) throws Exception
docString
-
Exception
public static Document getDocument(Reader reader) throws Exception
reader
-
Exception
public static Document getDocument(File file) throws Exception
file
-
Exception
public static Document getDocument(InputStream is) throws Exception
is
-
Exception
public static String getDocumentAsString(Document signedDoc) throws Exception
signedDoc
-
Exception
public static String getDOMElementAsString(Element element) throws Exception
element
-
Exception
public static InputStream getNodeAsStream(Node node) throws Exception
node
-
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |