|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.axiom.om.OMXMLBuilderFactory
public class OMXMLBuilderFactory
Provides static factory methods to create various kinds of object model builders from different types of input sources. The methods defined by this class are the starting point to parse XML documents into Axiom trees.
WARNING: This API is still under construction (see AXIOM-353) and may slightly change in subsequent releases!
Method Summary | |
---|---|
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,
XMLStreamReader parser)
Create an object model builder that pulls events from a StAX stream reader using a specified object model factory. |
static OMXMLParserWrapper |
createStAXOMBuilder(XMLStreamReader parser)
Create an object model builder for plain XML that pulls events from a StAX stream reader. |
static SOAPModelBuilder |
createStAXSOAPModelBuilder(XMLStreamReader parser)
Create an object model builder for SOAP that pulls events from a StAX stream reader. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static OMXMLParserWrapper createStAXOMBuilder(XMLStreamReader parser)
parser
- the stream reader to read the XML data from
public static OMXMLParserWrapper createStAXOMBuilder(OMFactory omFactory, XMLStreamReader parser)
omFactory
- the object model factory to useparser
- the stream reader to read the XML data from
public static OMXMLParserWrapper createOMBuilder(InputStream in)
StAXParserConfiguration.DEFAULT
.
in
- the input stream representing the XML document
public static OMXMLParserWrapper createOMBuilder(StAXParserConfiguration configuration, InputStream in)
configuration
- the parser configuration to usein
- the input stream representing the XML document
public static OMXMLParserWrapper createOMBuilder(OMFactory omFactory, InputStream in)
StAXParserConfiguration.DEFAULT
.
omFactory
- the object model factory to usein
- the input stream representing the XML document
public 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 document
public static OMXMLParserWrapper createOMBuilder(Reader in)
StAXParserConfiguration.DEFAULT
.
in
- the character stream representing the XML document
public static OMXMLParserWrapper createOMBuilder(StAXParserConfiguration configuration, Reader in)
configuration
- the parser configuration to usein
- the character stream representing the XML document
public static OMXMLParserWrapper createOMBuilder(OMFactory omFactory, Reader in)
StAXParserConfiguration.DEFAULT
.
omFactory
- the object model factory to usein
- the character stream representing the XML document
public 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 document
public static OMXMLParserWrapper createOMBuilder(Source source)
Source
.
source
- the source of the XML document
public 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 document
public static SOAPModelBuilder createStAXSOAPModelBuilder(XMLStreamReader parser)
SOAPFactory
based on the namespace URI of the SOAP envelope.
parser
- the stream reader to read the XML data from
public 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 encoding
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |