@Contract public interface XmlServiceParser
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_PARSING_SERVICE
The default Xml parsing service will have this name
|
static String |
STREAM_PARSING_SERVICE
A stream parsing service that does not use JAXB but an internal stream based
implementation
|
Modifier and Type | Method and Description |
---|---|
PreGenerationRequirement |
getPreGenerationRequirement()
This tells the system whether or not it needs to pregenerate all proxies
prior to parsing a document or if the proxies can be generated lazily
|
<T> void |
marshal(OutputStream outputStream,
XmlRootHandle<T> root,
Map<String,Object> options)
Marshalls this tree into the given stream.
|
<T> T |
parseRoot(Model rootModel,
InputStream input,
Unmarshaller.Listener listener,
Map<String,Object> options)
This method must return an instance of the given class as the root of
an XML graph
|
<T> T |
parseRoot(Model rootModel,
URI location,
Unmarshaller.Listener listener,
Map<String,Object> options)
This method must return an instance of the given class as the root of
an XML graph
|
static final String DEFAULT_PARSING_SERVICE
static final String STREAM_PARSING_SERVICE
<T> T parseRoot(Model rootModel, URI location, Unmarshaller.Listener listener, Map<String,Object> options) throws Exception
rootModel
- The Model object of the root to be parsedlocation
- The location of the file to parselistener
- A listener that must be called via the contract of Unmarshaller.Listeneroptions
- optional (possibly null) options from the callerException
<T> T parseRoot(Model rootModel, InputStream input, Unmarshaller.Listener listener, Map<String,Object> options) throws Exception
rootModel
- The Model object of the root to be parsedinput
- A non-null input stream. This stream will NOT be closed by this methodlistener
- A listener that must be called via the contract of Unmarshaller.Listeneroptions
- optional (possibly null) options from the callerException
PreGenerationRequirement getPreGenerationRequirement()
<T> void marshal(OutputStream outputStream, XmlRootHandle<T> root, Map<String,Object> options) throws IOException
outputStream
- A non-closed output stream. This method will
not close the output streamroot
- The root of the tree to marshalloptions
- optional (possibly null) options from the callerIOException
- On any exception that might happenCopyright © 2009–2023 Oracle Corporation. All rights reserved.