public class OMXMLBuilderFactory extends Object
WARNING: This API is still under construction (see AXIOM-353) and may slightly change in subsequent releases!
Modifier and Type | Method and Description |
---|---|
static OMXMLParserWrapper |
createOMBuilder(InputStream in)
Create an object model builder that reads a plain XML document from the provided input stream
with the default parser configuration defined by
StAXParserConfiguration.DEFAULT . |
static OMXMLParserWrapper |
createOMBuilder(OMFactory omFactory,
InputStream in)
Create an object model builder that reads an XML document from the provided input stream
using a specified object model factory and with the default parser configuration defined by
StAXParserConfiguration.DEFAULT . |
static OMXMLParserWrapper |
createOMBuilder(OMFactory omFactory,
Reader in)
Create an object model builder that reads an XML document from the provided character stream
using a specified object model factory and with the default parser configuration defined by
StAXParserConfiguration.DEFAULT . |
static OMXMLParserWrapper |
createOMBuilder(OMFactory omFactory,
Source source)
Create an object model builder that reads an XML document from the provided
Source
using a specified object model factory. |
static OMXMLParserWrapper |
createOMBuilder(OMFactory omFactory,
StAXParserConfiguration configuration,
InputStream in)
Create an object model builder that reads an XML document from the provided input stream
using a specified object model factory and with a given parser configuration.
|
static OMXMLParserWrapper |
createOMBuilder(OMFactory omFactory,
StAXParserConfiguration configuration,
Reader in)
Create an object model builder that reads an XML document from the provided character stream
using a specified object model factory and with a given parser configuration.
|
static OMXMLParserWrapper |
createOMBuilder(Reader in)
Create an object model builder that reads a plain XML document from the provided character
stream with the default parser configuration defined by
StAXParserConfiguration.DEFAULT . |
static OMXMLParserWrapper |
createOMBuilder(Source source)
Create an object model builder that reads a plain XML document from the provided
Source . |
static OMXMLParserWrapper |
createOMBuilder(StAXParserConfiguration configuration,
InputStream in)
Create an object model builder that reads a plain XML document from the provided input stream
with a given parser configuration.
|
static OMXMLParserWrapper |
createOMBuilder(StAXParserConfiguration configuration,
Reader in)
Create an object model builder that reads a plain XML document from the provided character
stream with a given parser configuration.
|
static SOAPModelBuilder |
createSOAPModelBuilder(InputStream in,
String encoding)
Create an object model builder for SOAP that reads a message from the provided input stream,
using a given charset encoding.
|
static OMXMLParserWrapper |
createStAXOMBuilder(OMFactory omFactory,
javax.xml.stream.XMLStreamReader parser)
Create an object model builder that pulls events from a StAX stream reader using a specified
object model factory.
|
static OMXMLParserWrapper |
createStAXOMBuilder(javax.xml.stream.XMLStreamReader parser)
Create an object model builder for plain XML that pulls events from a StAX stream reader.
|
static SOAPModelBuilder |
createStAXSOAPModelBuilder(javax.xml.stream.XMLStreamReader parser)
Create an object model builder for SOAP that pulls events from a StAX stream reader.
|
public static OMXMLParserWrapper createStAXOMBuilder(javax.xml.stream.XMLStreamReader parser)
parser
- the stream reader to read the XML data frompublic static OMXMLParserWrapper createStAXOMBuilder(OMFactory omFactory, javax.xml.stream.XMLStreamReader parser)
omFactory
- the object model factory to useparser
- the stream reader to read the XML data frompublic static OMXMLParserWrapper createOMBuilder(InputStream in)
StAXParserConfiguration.DEFAULT
.in
- the input stream representing the XML documentpublic static OMXMLParserWrapper createOMBuilder(StAXParserConfiguration configuration, InputStream in)
configuration
- the parser configuration to usein
- the input stream representing the XML documentpublic static OMXMLParserWrapper createOMBuilder(OMFactory omFactory, InputStream in)
StAXParserConfiguration.DEFAULT
.omFactory
- the object model factory to usein
- the input stream representing the XML documentpublic static OMXMLParserWrapper createOMBuilder(OMFactory omFactory, StAXParserConfiguration configuration, InputStream in)
omFactory
- the object model factory to useconfiguration
- the parser configuration to usein
- the input stream representing the XML documentpublic static OMXMLParserWrapper createOMBuilder(Reader in)
StAXParserConfiguration.DEFAULT
.in
- the character stream representing the XML documentpublic static OMXMLParserWrapper createOMBuilder(StAXParserConfiguration configuration, Reader in)
configuration
- the parser configuration to usein
- the character stream representing the XML documentpublic static OMXMLParserWrapper createOMBuilder(OMFactory omFactory, Reader in)
StAXParserConfiguration.DEFAULT
.omFactory
- the object model factory to usein
- the character stream representing the XML documentpublic static OMXMLParserWrapper createOMBuilder(OMFactory omFactory, StAXParserConfiguration configuration, Reader in)
omFactory
- the object model factory to useconfiguration
- the parser configuration to usein
- the character stream representing the XML documentpublic static OMXMLParserWrapper createOMBuilder(Source source)
Source
.source
- the source of the XML documentpublic static OMXMLParserWrapper createOMBuilder(OMFactory omFactory, Source source)
Source
using a specified object model factory.omFactory
- the object model factory to usesource
- the source of the XML documentpublic static SOAPModelBuilder createStAXSOAPModelBuilder(javax.xml.stream.XMLStreamReader parser)
SOAPFactory
based on the namespace URI of the SOAP envelope.parser
- the stream reader to read the XML data frompublic static SOAPModelBuilder createSOAPModelBuilder(InputStream in, String encoding)
SOAPFactory
based on the namespace URI of the SOAP envelope. It will configure the underlying parser as
specified by StAXParserConfiguration.SOAP
.in
- the input stream containing the SOAP messageencoding
- the charset encodingCopyright © 2004-2013 The Apache Software Foundation. All Rights Reserved.