public class DocumentParser extends Object
| Modifier and Type | Field and Description |
|---|---|
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 and Description |
|---|
DocumentParser() |
| Modifier and Type | Method and Description |
|---|---|
static Document |
createEmptyDocument()
Creates a new, empty target document.
|
private 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.
|
private static final boolean VALIDATE
private static final boolean WHITESPACE
private static final boolean EXPAND
private static DocumentBuilder build
public static Document createEmptyDocument()
private 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)