|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectxml.DocumentParser
public class DocumentParser
A class allowing static access to a document builder. If applications need the (standard?) setup for validating, whitespace-removal and entity expanding, they can rely on this class.
| Field Summary | |
|---|---|
private static DocumentBuilder |
build
The document builder used by the target factory. |
private static boolean |
EXPAND
Default value for ignoring whitespace element content (true). |
private static boolean |
VALIDATE
Default value for validating (true). |
private static boolean |
WHITESPACE
Default value for ignoring whitespace element content (true). |
| Constructor Summary | |
|---|---|
DocumentParser()
|
|
| Method Summary | |
|---|---|
static Document |
createEmptyDocument()
Creates a new, empty target document. |
static Document |
parse(InputSource input)
The method to convert an XML-URL to the Document format. |
static Document |
parseFile(File input)
The method to convert an XML-URL to the Document format. |
static Document |
parseInputStream(InputStream input)
The method to convert an XML-URL to the Document format. |
static Document |
parseReader(Reader input)
The method to convert an XML-URL to the Document format. |
static Document |
parseURL(URL input)
The method to convert an XML-URL to the Document format. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static final boolean VALIDATE
private static final boolean WHITESPACE
private static final boolean EXPAND
private static DocumentBuilder build
| Constructor Detail |
|---|
public DocumentParser()
| Method Detail |
|---|
public static Document createEmptyDocument()
public static Document parse(InputSource input)
public static Document parseURL(URL input)
public static Document parseInputStream(InputStream input)
public static Document parseReader(Reader input)
public static Document parseFile(File input)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||