public class PushOMBuilder extends AbstractXMLStreamWriter implements DataHandlerWriter
PROPERTY| Constructor and Description |
|---|
PushOMBuilder(OMSourcedElementImpl root) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
protected void |
doWriteAttribute(String localName,
String value) |
protected void |
doWriteAttribute(String prefix,
String namespaceURI,
String localName,
String value) |
protected void |
doWriteCData(String data) |
protected void |
doWriteCharacters(char[] text,
int start,
int len) |
protected void |
doWriteCharacters(String text) |
protected void |
doWriteComment(String data) |
protected void |
doWriteDefaultNamespace(String namespaceURI) |
protected void |
doWriteDTD(String dtd) |
protected void |
doWriteEmptyElement(String localName) |
protected void |
doWriteEmptyElement(String prefix,
String localName,
String namespaceURI) |
protected void |
doWriteEndDocument() |
protected void |
doWriteEndElement() |
protected void |
doWriteEntityRef(String name) |
protected void |
doWriteNamespace(String prefix,
String namespaceURI) |
protected void |
doWriteProcessingInstruction(String target) |
protected void |
doWriteProcessingInstruction(String target,
String data) |
protected void |
doWriteStartDocument() |
protected void |
doWriteStartDocument(String version) |
protected void |
doWriteStartDocument(String encoding,
String version) |
protected void |
doWriteStartElement(String localName) |
protected void |
doWriteStartElement(String prefix,
String localName,
String namespaceURI) |
void |
flush() |
Object |
getProperty(String name) |
void |
writeDataHandler(DataHandlerProvider dataHandlerProvider,
String contentID,
boolean optimize)
Write binary content to the stream.
|
void |
writeDataHandler(DataHandler dataHandler,
String contentID,
boolean optimize)
Write binary content to the stream.
|
getNamespaceContext, getPrefix, setDefaultNamespace, setNamespaceContext, setPrefix, writeAttribute, writeAttribute, writeAttribute, writeCData, writeCharacters, writeCharacters, writeComment, writeDefaultNamespace, writeDTD, writeEmptyElement, writeEmptyElement, writeEmptyElement, writeEndDocument, writeEndElement, writeEntityRef, writeNamespace, writeProcessingInstruction, writeProcessingInstruction, writeStartDocument, writeStartDocument, writeStartDocument, writeStartElement, writeStartElement, writeStartElementpublic PushOMBuilder(OMSourcedElementImpl root) throws XMLStreamException
XMLStreamExceptionpublic Object getProperty(String name) throws IllegalArgumentException
getProperty in interface XMLStreamWriterIllegalArgumentExceptionprotected void doWriteStartDocument()
doWriteStartDocument in class AbstractXMLStreamWriterprotected void doWriteStartDocument(String encoding, String version)
doWriteStartDocument in class AbstractXMLStreamWriterprotected void doWriteStartDocument(String version)
doWriteStartDocument in class AbstractXMLStreamWriterprotected void doWriteEndDocument()
doWriteEndDocument in class AbstractXMLStreamWriterprotected void doWriteDTD(String dtd) throws XMLStreamException
doWriteDTD in class AbstractXMLStreamWriterXMLStreamExceptionprotected void doWriteStartElement(String prefix, String localName, String namespaceURI)
doWriteStartElement in class AbstractXMLStreamWriterprotected void doWriteStartElement(String localName) throws XMLStreamException
doWriteStartElement in class AbstractXMLStreamWriterXMLStreamExceptionprotected void doWriteEndElement()
doWriteEndElement in class AbstractXMLStreamWriterprotected void doWriteEmptyElement(String prefix, String localName, String namespaceURI)
doWriteEmptyElement in class AbstractXMLStreamWriterprotected void doWriteEmptyElement(String localName) throws XMLStreamException
doWriteEmptyElement in class AbstractXMLStreamWriterXMLStreamExceptionprotected void doWriteAttribute(String prefix, String namespaceURI, String localName, String value)
doWriteAttribute in class AbstractXMLStreamWriterprotected void doWriteAttribute(String localName, String value) throws XMLStreamException
doWriteAttribute in class AbstractXMLStreamWriterXMLStreamExceptionprotected void doWriteNamespace(String prefix, String namespaceURI)
doWriteNamespace in class AbstractXMLStreamWriterprotected void doWriteDefaultNamespace(String namespaceURI)
doWriteDefaultNamespace in class AbstractXMLStreamWriterprotected void doWriteCharacters(char[] text,
int start,
int len)
doWriteCharacters in class AbstractXMLStreamWriterprotected void doWriteCharacters(String text)
doWriteCharacters in class AbstractXMLStreamWriterprotected void doWriteCData(String data)
doWriteCData in class AbstractXMLStreamWriterprotected void doWriteComment(String data)
doWriteComment in class AbstractXMLStreamWriterprotected void doWriteEntityRef(String name) throws XMLStreamException
doWriteEntityRef in class AbstractXMLStreamWriterXMLStreamExceptionprotected void doWriteProcessingInstruction(String target, String data)
doWriteProcessingInstruction in class AbstractXMLStreamWriterprotected void doWriteProcessingInstruction(String target)
doWriteProcessingInstruction in class AbstractXMLStreamWriterpublic void flush()
throws XMLStreamException
flush in interface XMLStreamWriterXMLStreamExceptionpublic void close()
throws XMLStreamException
close in interface XMLStreamWriterXMLStreamExceptionpublic void writeDataHandler(DataHandler dataHandler, String contentID, boolean optimize) throws IOException, XMLStreamException
DataHandlerWriterwriteDataHandler in interface DataHandlerWriterdataHandler - the binary content to writecontentID - an existing content ID for the binary data (see above)optimize - indicates whether the content is eligible for optimization (see above)IOException - if an error occurs while reading from the data handlerXMLStreamException - if an error occurs while writing to the underlying streampublic void writeDataHandler(DataHandlerProvider dataHandlerProvider, String contentID, boolean optimize) throws IOException, XMLStreamException
DataHandlerWriterwriteDataHandler in interface DataHandlerWriterdataHandlerProvider - the binary content to writecontentID - an existing content ID for the binary data (see above)optimize - indicates whether the content is eligible for optimization (see above)IOException - If an error occurs while reading from the data handler. Since the implementation
is free to override the supplied optimize argument, it may attempt
to load the binary data immediately. Because this operation may fail, the method
must declare this exception.XMLStreamException - if an error occurs while writing to the underlying streamCopyright © 2004–2024 The Apache Software Foundation. All rights reserved.