public class SecureUnmarshaller
extends java.lang.Object
implements javax.xml.bind.Unmarshaller
Modifier and Type | Field and Description |
---|---|
private javax.xml.bind.Unmarshaller |
delegate |
(package private) boolean |
disableDTDs |
(package private) boolean |
disableExternalEntities |
(package private) boolean |
enableSecureProcessingFeature |
Constructor and Description |
---|
SecureUnmarshaller(javax.xml.bind.Unmarshaller delegate,
boolean disableExternalEntities,
boolean enableSecureProcessingFeature,
boolean disableDTDs) |
Modifier and Type | Method and Description |
---|---|
private void |
configParser(javax.xml.parsers.SAXParser sp) |
protected void |
configureParserFactory(javax.xml.parsers.SAXParserFactory factory) |
<A extends javax.xml.bind.annotation.adapters.XmlAdapter> |
getAdapter(java.lang.Class<A> type) |
javax.xml.bind.attachment.AttachmentUnmarshaller |
getAttachmentUnmarshaller() |
javax.xml.bind.Unmarshaller |
getDelegate() |
javax.xml.bind.ValidationEventHandler |
getEventHandler() |
javax.xml.bind.Unmarshaller.Listener |
getListener() |
java.lang.Object |
getProperty(java.lang.String name) |
javax.xml.validation.Schema |
getSchema() |
javax.xml.bind.UnmarshallerHandler |
getUnmarshallerHandler() |
boolean |
isValidating()
Deprecated.
This method is deprecated as of JAXB 2.0 - please use the new
getSchema() API. |
<A extends javax.xml.bind.annotation.adapters.XmlAdapter> |
setAdapter(java.lang.Class<A> type,
A adapter) |
void |
setAdapter(javax.xml.bind.annotation.adapters.XmlAdapter adapter) |
void |
setAttachmentUnmarshaller(javax.xml.bind.attachment.AttachmentUnmarshaller au) |
void |
setDelegate(javax.xml.bind.Unmarshaller delegate) |
void |
setEventHandler(javax.xml.bind.ValidationEventHandler handler) |
void |
setListener(javax.xml.bind.Unmarshaller.Listener listener) |
void |
setProperty(java.lang.String name,
java.lang.Object value) |
void |
setSchema(javax.xml.validation.Schema schema) |
void |
setValidating(boolean validating)
Deprecated.
since JAXB2.0, please see
getSchema() |
java.lang.Object |
unmarshal(java.io.File f) |
java.lang.Object |
unmarshal(org.xml.sax.InputSource source)
Turns off expansion of external entities.
|
java.lang.Object |
unmarshal(java.io.InputStream is)
Turns off expansion of external entities.
|
java.lang.Object |
unmarshal(org.w3c.dom.Node node) |
<T> javax.xml.bind.JAXBElement<T> |
unmarshal(org.w3c.dom.Node node,
java.lang.Class<T> declaredType) |
java.lang.Object |
unmarshal(java.io.Reader reader) |
java.lang.Object |
unmarshal(javax.xml.transform.Source source) |
<T> javax.xml.bind.JAXBElement<T> |
unmarshal(javax.xml.transform.Source source,
java.lang.Class<T> declaredType) |
java.lang.Object |
unmarshal(java.net.URL url) |
java.lang.Object |
unmarshal(javax.xml.stream.XMLEventReader reader) |
<T> javax.xml.bind.JAXBElement<T> |
unmarshal(javax.xml.stream.XMLEventReader reader,
java.lang.Class<T> declaredType) |
java.lang.Object |
unmarshal(javax.xml.stream.XMLStreamReader reader) |
<T> javax.xml.bind.JAXBElement<T> |
unmarshal(javax.xml.stream.XMLStreamReader reader,
java.lang.Class<T> declaredType) |
private javax.xml.bind.Unmarshaller delegate
boolean disableExternalEntities
boolean enableSecureProcessingFeature
boolean disableDTDs
public SecureUnmarshaller(javax.xml.bind.Unmarshaller delegate, boolean disableExternalEntities, boolean enableSecureProcessingFeature, boolean disableDTDs)
public <A extends javax.xml.bind.annotation.adapters.XmlAdapter> A getAdapter(java.lang.Class<A> type)
getAdapter
in interface javax.xml.bind.Unmarshaller
public javax.xml.bind.attachment.AttachmentUnmarshaller getAttachmentUnmarshaller()
getAttachmentUnmarshaller
in interface javax.xml.bind.Unmarshaller
public javax.xml.bind.ValidationEventHandler getEventHandler() throws javax.xml.bind.JAXBException
getEventHandler
in interface javax.xml.bind.Unmarshaller
javax.xml.bind.JAXBException
public javax.xml.bind.Unmarshaller.Listener getListener()
getListener
in interface javax.xml.bind.Unmarshaller
public java.lang.Object getProperty(java.lang.String name) throws javax.xml.bind.PropertyException
getProperty
in interface javax.xml.bind.Unmarshaller
javax.xml.bind.PropertyException
public javax.xml.validation.Schema getSchema()
getSchema
in interface javax.xml.bind.Unmarshaller
public javax.xml.bind.UnmarshallerHandler getUnmarshallerHandler()
getUnmarshallerHandler
in interface javax.xml.bind.Unmarshaller
@Deprecated public boolean isValidating() throws javax.xml.bind.JAXBException
getSchema()
API.isValidating
in interface javax.xml.bind.Unmarshaller
javax.xml.bind.JAXBException
public void setAdapter(javax.xml.bind.annotation.adapters.XmlAdapter adapter)
setAdapter
in interface javax.xml.bind.Unmarshaller
public <A extends javax.xml.bind.annotation.adapters.XmlAdapter> void setAdapter(java.lang.Class<A> type, A adapter)
setAdapter
in interface javax.xml.bind.Unmarshaller
public void setAttachmentUnmarshaller(javax.xml.bind.attachment.AttachmentUnmarshaller au)
setAttachmentUnmarshaller
in interface javax.xml.bind.Unmarshaller
public void setEventHandler(javax.xml.bind.ValidationEventHandler handler) throws javax.xml.bind.JAXBException
setEventHandler
in interface javax.xml.bind.Unmarshaller
javax.xml.bind.JAXBException
public void setListener(javax.xml.bind.Unmarshaller.Listener listener)
setListener
in interface javax.xml.bind.Unmarshaller
public void setProperty(java.lang.String name, java.lang.Object value) throws javax.xml.bind.PropertyException
setProperty
in interface javax.xml.bind.Unmarshaller
javax.xml.bind.PropertyException
public void setSchema(javax.xml.validation.Schema schema)
setSchema
in interface javax.xml.bind.Unmarshaller
@Deprecated public void setValidating(boolean validating) throws javax.xml.bind.JAXBException
getSchema()
setValidating
in interface javax.xml.bind.Unmarshaller
javax.xml.bind.JAXBException
public java.lang.Object unmarshal(java.io.File f) throws javax.xml.bind.JAXBException
unmarshal
in interface javax.xml.bind.Unmarshaller
javax.xml.bind.JAXBException
public java.lang.Object unmarshal(java.io.InputStream is) throws javax.xml.bind.JAXBException
unmarshal
in interface javax.xml.bind.Unmarshaller
javax.xml.bind.JAXBException
public java.lang.Object unmarshal(java.io.Reader reader) throws javax.xml.bind.JAXBException
unmarshal
in interface javax.xml.bind.Unmarshaller
javax.xml.bind.JAXBException
public java.lang.Object unmarshal(java.net.URL url) throws javax.xml.bind.JAXBException
unmarshal
in interface javax.xml.bind.Unmarshaller
javax.xml.bind.JAXBException
public java.lang.Object unmarshal(org.xml.sax.InputSource source) throws javax.xml.bind.JAXBException
unmarshal
in interface javax.xml.bind.Unmarshaller
javax.xml.bind.JAXBException
public java.lang.Object unmarshal(org.w3c.dom.Node node) throws javax.xml.bind.JAXBException
unmarshal
in interface javax.xml.bind.Unmarshaller
javax.xml.bind.JAXBException
public java.lang.Object unmarshal(javax.xml.transform.Source source) throws javax.xml.bind.JAXBException
unmarshal
in interface javax.xml.bind.Unmarshaller
javax.xml.bind.JAXBException
private void configParser(javax.xml.parsers.SAXParser sp)
public java.lang.Object unmarshal(javax.xml.stream.XMLStreamReader reader) throws javax.xml.bind.JAXBException
unmarshal
in interface javax.xml.bind.Unmarshaller
javax.xml.bind.JAXBException
public java.lang.Object unmarshal(javax.xml.stream.XMLEventReader reader) throws javax.xml.bind.JAXBException
unmarshal
in interface javax.xml.bind.Unmarshaller
javax.xml.bind.JAXBException
public <T> javax.xml.bind.JAXBElement<T> unmarshal(org.w3c.dom.Node node, java.lang.Class<T> declaredType) throws javax.xml.bind.JAXBException
unmarshal
in interface javax.xml.bind.Unmarshaller
javax.xml.bind.JAXBException
public <T> javax.xml.bind.JAXBElement<T> unmarshal(javax.xml.transform.Source source, java.lang.Class<T> declaredType) throws javax.xml.bind.JAXBException
unmarshal
in interface javax.xml.bind.Unmarshaller
javax.xml.bind.JAXBException
public <T> javax.xml.bind.JAXBElement<T> unmarshal(javax.xml.stream.XMLStreamReader reader, java.lang.Class<T> declaredType) throws javax.xml.bind.JAXBException
unmarshal
in interface javax.xml.bind.Unmarshaller
javax.xml.bind.JAXBException
public <T> javax.xml.bind.JAXBElement<T> unmarshal(javax.xml.stream.XMLEventReader reader, java.lang.Class<T> declaredType) throws javax.xml.bind.JAXBException
unmarshal
in interface javax.xml.bind.Unmarshaller
javax.xml.bind.JAXBException
public javax.xml.bind.Unmarshaller getDelegate()
public void setDelegate(javax.xml.bind.Unmarshaller delegate)
protected void configureParserFactory(javax.xml.parsers.SAXParserFactory factory) throws javax.xml.parsers.ParserConfigurationException, org.xml.sax.SAXNotRecognizedException, org.xml.sax.SAXNotSupportedException
javax.xml.parsers.ParserConfigurationException
org.xml.sax.SAXNotRecognizedException
org.xml.sax.SAXNotSupportedException