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, writeStartElement
public PushOMBuilder(OMSourcedElementImpl root) throws XMLStreamException
XMLStreamException
public Object getProperty(String name) throws IllegalArgumentException
getProperty
in interface XMLStreamWriter
IllegalArgumentException
protected void doWriteStartDocument()
doWriteStartDocument
in class AbstractXMLStreamWriter
protected void doWriteStartDocument(String encoding, String version)
doWriteStartDocument
in class AbstractXMLStreamWriter
protected void doWriteStartDocument(String version)
doWriteStartDocument
in class AbstractXMLStreamWriter
protected void doWriteEndDocument()
doWriteEndDocument
in class AbstractXMLStreamWriter
protected void doWriteDTD(String dtd) throws XMLStreamException
doWriteDTD
in class AbstractXMLStreamWriter
XMLStreamException
protected void doWriteStartElement(String prefix, String localName, String namespaceURI)
doWriteStartElement
in class AbstractXMLStreamWriter
protected void doWriteStartElement(String localName) throws XMLStreamException
doWriteStartElement
in class AbstractXMLStreamWriter
XMLStreamException
protected void doWriteEndElement()
doWriteEndElement
in class AbstractXMLStreamWriter
protected void doWriteEmptyElement(String prefix, String localName, String namespaceURI)
doWriteEmptyElement
in class AbstractXMLStreamWriter
protected void doWriteEmptyElement(String localName) throws XMLStreamException
doWriteEmptyElement
in class AbstractXMLStreamWriter
XMLStreamException
protected void doWriteAttribute(String prefix, String namespaceURI, String localName, String value)
doWriteAttribute
in class AbstractXMLStreamWriter
protected void doWriteAttribute(String localName, String value) throws XMLStreamException
doWriteAttribute
in class AbstractXMLStreamWriter
XMLStreamException
protected void doWriteNamespace(String prefix, String namespaceURI)
doWriteNamespace
in class AbstractXMLStreamWriter
protected void doWriteDefaultNamespace(String namespaceURI)
doWriteDefaultNamespace
in class AbstractXMLStreamWriter
protected void doWriteCharacters(char[] text, int start, int len)
doWriteCharacters
in class AbstractXMLStreamWriter
protected void doWriteCharacters(String text)
doWriteCharacters
in class AbstractXMLStreamWriter
protected void doWriteCData(String data)
doWriteCData
in class AbstractXMLStreamWriter
protected void doWriteComment(String data)
doWriteComment
in class AbstractXMLStreamWriter
protected void doWriteEntityRef(String name) throws XMLStreamException
doWriteEntityRef
in class AbstractXMLStreamWriter
XMLStreamException
protected void doWriteProcessingInstruction(String target, String data)
doWriteProcessingInstruction
in class AbstractXMLStreamWriter
protected void doWriteProcessingInstruction(String target)
doWriteProcessingInstruction
in class AbstractXMLStreamWriter
public void flush() throws XMLStreamException
flush
in interface XMLStreamWriter
XMLStreamException
public void close() throws XMLStreamException
close
in interface XMLStreamWriter
XMLStreamException
public void writeDataHandler(DataHandler dataHandler, String contentID, boolean optimize) throws IOException, XMLStreamException
DataHandlerWriter
writeDataHandler
in interface DataHandlerWriter
dataHandler
- 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
DataHandlerWriter
writeDataHandler
in interface DataHandlerWriter
dataHandlerProvider
- 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.