|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.axiom.om.impl.builder.StAXBuilder
org.apache.axiom.om.impl.builder.StAXOMBuilder
public class StAXOMBuilder
StAX based builder that produces a pure XML infoset compliant object model.
Field Summary |
---|
Fields inherited from class org.apache.axiom.om.impl.builder.StAXBuilder |
---|
_isClosed, _releaseParserOnClose, cache, charEncoding, customBuilderForPayload, customBuilders, document, done, elementLevel, isDataHandlerAware, lastNode, maxDepthForCustomBuilders, omfactory, parser, parserAccessed |
Constructor Summary | |
---|---|
StAXOMBuilder()
Init() *must* be called after creating the builder using this constructor. |
|
StAXOMBuilder(InputStream inStream)
|
|
StAXOMBuilder(OMFactory ombuilderFactory,
javax.xml.stream.XMLStreamReader parser)
Constructor StAXOMBuilder. |
|
StAXOMBuilder(OMFactory factory,
javax.xml.stream.XMLStreamReader parser,
OMElement element)
Constructor linked to existing element. |
|
StAXOMBuilder(OMFactory factory,
javax.xml.stream.XMLStreamReader parser,
OMElement element,
String characterEncoding)
Constructor linked to existing element. |
|
StAXOMBuilder(String filePath)
|
|
StAXOMBuilder(javax.xml.stream.XMLStreamReader parser)
Constructor StAXOMBuilder. |
Method Summary | |
---|---|
protected OMNode |
createComment()
Method createOMText. |
protected OMNode |
createDTD()
Method createDTD. |
protected OMNode |
createNextOMElement()
Creates a new OMElement using either a CustomBuilder or the default Builder mechanism. |
protected OMNode |
createOMElement()
Method createOMElement. |
protected OMNode |
createPI()
Method createPI. |
protected String |
createPrefix()
|
protected OMNode |
createWithCustomBuilder(CustomBuilder customBuilder,
OMFactory factory)
|
protected void |
endElement()
|
OMElement |
getDocumentElement()
Method getDocumentElement. |
boolean |
isLookahead()
|
boolean |
isNamespaceURIInterning()
|
protected void |
logParserState()
Dump the current event of the parser. |
boolean |
lookahead()
This method looks ahead to the next start element. |
int |
next()
Method next. |
protected void |
processNamespaceData(OMElement node)
Method processNamespaceData. |
void |
setDoDebug(boolean doDebug)
Deprecated. |
void |
setNamespaceURIInterning(boolean b)
Set namespace uri interning |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StAXOMBuilder(OMFactory ombuilderFactory, javax.xml.stream.XMLStreamReader parser)
ombuilderFactory
- parser
- public StAXOMBuilder(OMFactory factory, javax.xml.stream.XMLStreamReader parser, OMElement element, String characterEncoding)
factory
- parser
- element
- characterEncoding
- of existing elementpublic StAXOMBuilder(OMFactory factory, javax.xml.stream.XMLStreamReader parser, OMElement element)
factory
- parser
- element
- public StAXOMBuilder(String filePath) throws javax.xml.stream.XMLStreamException, FileNotFoundException
filePath
- - Path to the XML file
javax.xml.stream.XMLStreamException
FileNotFoundException
public StAXOMBuilder(javax.xml.stream.XMLStreamReader parser)
parser
- public StAXOMBuilder(InputStream inStream) throws javax.xml.stream.XMLStreamException
inStream
- - instream which contains the XML
javax.xml.stream.XMLStreamException
public StAXOMBuilder()
Method Detail |
---|
public int next() throws OMException
next
in interface OMXMLParserWrapper
next
in class StAXBuilder
OMException
protected OMNode createNextOMElement()
protected OMNode createWithCustomBuilder(CustomBuilder customBuilder, OMFactory factory)
protected void logParserState()
protected OMNode createOMElement() throws OMException
createOMElement
in class StAXBuilder
OMException
protected OMNode createComment() throws OMException
OMException
protected OMNode createDTD() throws OMException
OMException
protected OMNode createPI() throws OMException
OMException
protected void endElement()
public OMElement getDocumentElement()
protected void processNamespaceData(OMElement node)
processNamespaceData
in class StAXBuilder
node
- public void setDoDebug(boolean doDebug)
doDebug
- protected String createPrefix()
public void setNamespaceURIInterning(boolean b)
b
- public boolean isNamespaceURIInterning()
public boolean lookahead()
public boolean isLookahead()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |