|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.schmant.support.xml.dom.DomParserSupport
public class DomParserSupport
Utility class with static methods for DOM parsing XML documents.
Method Summary | |
---|---|
static Document |
parseFile(DocumentBuilderFactory dbf,
ReadableFile f)
DOM parse the provided file and return the parsed Document . |
static Document |
parseFile(DocumentBuilderFactory dbf,
ReadableFile f,
EntityResolver er,
ErrorHandler eh)
DOM parse the provided file and return the parsed Document . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static Document parseFile(DocumentBuilderFactory dbf, ReadableFile f, EntityResolver er, ErrorHandler eh) throws IOException
Document
.
dbf
- The DocumentBuilderFactory
to use for creating a
DocumentBuilder
.f
- The file to parse.er
- An EntityResolver
for resolving external entities. If
this is null
, no external entity resolver is used.eh
- An ErrorHandler
for dealing with parse errors. This may
be set to null
.
Document
.
IOException
- On I/O errors.parseFile(DocumentBuilderFactory, ReadableFile)
public static Document parseFile(DocumentBuilderFactory dbf, ReadableFile f) throws IOException
Document
.
dbf
- The DocumentBuilderFactory
to use for creating a
DocumentBuilder
.f
- The file to parse.
Document
.
IOException
- On I/O errors.parseFile(DocumentBuilderFactory, ReadableFile, EntityResolver,
ErrorHandler)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |