public class XmlDataReader
extends java.lang.Object
| Modifier and Type | Class | Description |
|---|---|---|
static class |
XmlDataReader.Feature |
| Modifier and Type | Field | Description |
|---|---|---|
protected AttributePredicate |
attributeFilter |
|
protected AttributeNameConverter |
attributeNameConverter |
|
protected AttributeValueConverter |
attributeValueConverter |
|
static cdc.util.lang.Cache<java.lang.String> |
CACHE |
|
protected ElementPredicate |
elementFilter |
|
protected ElementNameConverter |
elementNameConverter |
|
protected static org.apache.logging.log4j.Logger |
LOGGER |
| Constructor | Description |
|---|---|
XmlDataReader() |
| Modifier and Type | Method | Description |
|---|---|---|
AttributePredicate |
getAttributeFilter() |
|
AttributeNameConverter |
getAttributeNameConverter() |
|
AttributeValueConverter |
getAttributeValueConverter() |
|
ElementPredicate |
getElementFilter() |
|
ElementNameConverter |
getElementNameConverter() |
|
boolean |
isEnabled(XmlDataReader.Feature feature) |
|
Document |
read(java.io.File file) |
|
Document |
read(java.io.InputStream is) |
|
Document |
read(java.lang.String filename) |
|
static Document |
read(java.lang.String filename,
XmlDataReader.Feature... features) |
|
Document |
read(java.net.URL url) |
|
void |
setAttributeFilter(AttributePredicate filter) |
|
void |
setAttributeNameConverter(AttributeNameConverter converter) |
|
void |
setAttributeValueConverter(AttributeValueConverter converter) |
|
void |
setElementFilter(ElementPredicate filter) |
|
void |
setElementNameConverter(ElementNameConverter converter) |
|
void |
setEnabled(XmlDataReader.Feature feature,
boolean enabled) |
public static final cdc.util.lang.Cache<java.lang.String> CACHE
protected static final org.apache.logging.log4j.Logger LOGGER
protected AttributePredicate attributeFilter
protected AttributeNameConverter attributeNameConverter
protected AttributeValueConverter attributeValueConverter
protected ElementPredicate elementFilter
protected ElementNameConverter elementNameConverter
public boolean isEnabled(XmlDataReader.Feature feature)
public void setEnabled(XmlDataReader.Feature feature, boolean enabled)
public AttributePredicate getAttributeFilter()
public void setAttributeFilter(AttributePredicate filter)
public AttributeNameConverter getAttributeNameConverter()
public void setAttributeNameConverter(AttributeNameConverter converter)
public AttributeValueConverter getAttributeValueConverter()
public void setAttributeValueConverter(AttributeValueConverter converter)
public ElementPredicate getElementFilter()
public void setElementFilter(ElementPredicate filter)
public ElementNameConverter getElementNameConverter()
public void setElementNameConverter(ElementNameConverter converter)
public Document read(java.io.InputStream is) throws java.io.IOException
java.io.IOExceptionpublic Document read(java.net.URL url) throws java.io.IOException
java.io.IOExceptionpublic Document read(java.lang.String filename) throws java.io.IOException
java.io.IOExceptionpublic Document read(java.io.File file) throws java.io.IOException
java.io.IOExceptionpublic static Document read(java.lang.String filename, XmlDataReader.Feature... features) throws java.io.IOException
java.io.IOExceptionCopyright © 2018. All rights reserved.