Package org.apache.sis.internal.xml
Class StreamWriterDelegate
java.lang.Object
org.apache.sis.internal.xml.StreamWriterDelegate
- All Implemented Interfaces:
XMLStreamWriter
- Direct Known Subclasses:
FormattedWriter,NamespaceEraser
@Workaround(library="JDK",
version="1.8")
public class StreamWriterDelegate
extends Object
implements XMLStreamWriter
Base class for deriving an
XMLStreamWriter filters.
By default each method does nothing but call the corresponding method on the wrapped instance.
This class is the complement of StreamReaderDelegate provided
in standard JDK. For an unknown reason, JDK 8 does not provide a StreamWriterDelegate.
- Since:
- 0.8
- Version:
- 1.0
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCreates a new filter. -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Forwards the call verbatim.voidflush()Forwards the call verbatim.Forwards the call verbatim.Forwards the call verbatim.getProperty(String name) Forwards the call verbatim.voidForwards the call verbatim.voidsetNamespaceContext(NamespaceContext context) Forwards the call verbatim.voidForwards the call verbatim.voidwriteAttribute(String localName, String value) Forwards the call verbatim.voidwriteAttribute(String namespaceURI, String localName, String value) Forwards the call verbatim.voidwriteAttribute(String prefix, String namespaceURI, String localName, String value) Forwards the call verbatim.voidwriteCData(String data) Forwards the call verbatim.voidwriteCharacters(char[] text, int start, int len) Forwards the call verbatim.voidwriteCharacters(String text) Forwards the call verbatim.voidwriteComment(String data) Forwards the call verbatim.voidwriteDefaultNamespace(String namespaceURI) Forwards the call verbatim.voidForwards the call verbatim.voidwriteEmptyElement(String localName) Forwards the call verbatim.voidwriteEmptyElement(String namespaceURI, String localName) Forwards the call verbatim.voidwriteEmptyElement(String prefix, String localName, String namespaceURI) Forwards the call verbatim.voidForwards the call verbatim.voidForwards the call verbatim.voidwriteEntityRef(String name) Forwards the call verbatim.voidwriteNamespace(String prefix, String namespaceURI) Forwards the call verbatim.voidwriteProcessingInstruction(String target) Forwards the call verbatim.voidwriteProcessingInstruction(String target, String data) Forwards the call verbatim.voidForwards the call verbatim.voidwriteStartDocument(String version) Forwards the call verbatim.voidwriteStartDocument(String encoding, String version) Forwards the call verbatim.voidwriteStartElement(String localName) Forwards the call verbatim.voidwriteStartElement(String namespaceURI, String localName) Forwards the call verbatim.voidwriteStartElement(String prefix, String localName, String namespaceURI) Forwards the call verbatim.
-
Field Details
-
out
Where to write the XML.
-
-
Constructor Details
-
StreamWriterDelegate
Creates a new filter.- Parameters:
out- where to write the XML.
-
-
Method Details
-
writeStartElement
Forwards the call verbatim.- Specified by:
writeStartElementin interfaceXMLStreamWriter- Throws:
XMLStreamException
-
writeStartElement
Forwards the call verbatim.- Specified by:
writeStartElementin interfaceXMLStreamWriter- Throws:
XMLStreamException
-
writeStartElement
public void writeStartElement(String prefix, String localName, String namespaceURI) throws XMLStreamException Forwards the call verbatim.- Specified by:
writeStartElementin interfaceXMLStreamWriter- Throws:
XMLStreamException
-
writeEmptyElement
Forwards the call verbatim.- Specified by:
writeEmptyElementin interfaceXMLStreamWriter- Throws:
XMLStreamException
-
writeEmptyElement
Forwards the call verbatim.- Specified by:
writeEmptyElementin interfaceXMLStreamWriter- Throws:
XMLStreamException
-
writeEmptyElement
public void writeEmptyElement(String prefix, String localName, String namespaceURI) throws XMLStreamException Forwards the call verbatim.- Specified by:
writeEmptyElementin interfaceXMLStreamWriter- Throws:
XMLStreamException
-
writeEndElement
Forwards the call verbatim.- Specified by:
writeEndElementin interfaceXMLStreamWriter- Throws:
XMLStreamException
-
writeEndDocument
Forwards the call verbatim.- Specified by:
writeEndDocumentin interfaceXMLStreamWriter- Throws:
XMLStreamException
-
close
Forwards the call verbatim.- Specified by:
closein interfaceXMLStreamWriter- Throws:
XMLStreamException
-
flush
Forwards the call verbatim.- Specified by:
flushin interfaceXMLStreamWriter- Throws:
XMLStreamException
-
writeAttribute
Forwards the call verbatim.- Specified by:
writeAttributein interfaceXMLStreamWriter- Throws:
XMLStreamException
-
writeAttribute
public void writeAttribute(String prefix, String namespaceURI, String localName, String value) throws XMLStreamException Forwards the call verbatim.- Specified by:
writeAttributein interfaceXMLStreamWriter- Throws:
XMLStreamException
-
writeAttribute
public void writeAttribute(String namespaceURI, String localName, String value) throws XMLStreamException Forwards the call verbatim.- Specified by:
writeAttributein interfaceXMLStreamWriter- Throws:
XMLStreamException
-
writeNamespace
Forwards the call verbatim.- Specified by:
writeNamespacein interfaceXMLStreamWriter- Throws:
XMLStreamException
-
writeDefaultNamespace
Forwards the call verbatim.- Specified by:
writeDefaultNamespacein interfaceXMLStreamWriter- Throws:
XMLStreamException
-
writeComment
Forwards the call verbatim.- Specified by:
writeCommentin interfaceXMLStreamWriter- Throws:
XMLStreamException
-
writeProcessingInstruction
Forwards the call verbatim.- Specified by:
writeProcessingInstructionin interfaceXMLStreamWriter- Throws:
XMLStreamException
-
writeProcessingInstruction
Forwards the call verbatim.- Specified by:
writeProcessingInstructionin interfaceXMLStreamWriter- Throws:
XMLStreamException
-
writeCData
Forwards the call verbatim.- Specified by:
writeCDatain interfaceXMLStreamWriter- Throws:
XMLStreamException
-
writeDTD
Forwards the call verbatim.- Specified by:
writeDTDin interfaceXMLStreamWriter- Throws:
XMLStreamException
-
writeEntityRef
Forwards the call verbatim.- Specified by:
writeEntityRefin interfaceXMLStreamWriter- Throws:
XMLStreamException
-
writeStartDocument
Forwards the call verbatim.- Specified by:
writeStartDocumentin interfaceXMLStreamWriter- Throws:
XMLStreamException
-
writeStartDocument
Forwards the call verbatim.- Specified by:
writeStartDocumentin interfaceXMLStreamWriter- Throws:
XMLStreamException
-
writeStartDocument
Forwards the call verbatim.- Specified by:
writeStartDocumentin interfaceXMLStreamWriter- Throws:
XMLStreamException
-
writeCharacters
Forwards the call verbatim.- Specified by:
writeCharactersin interfaceXMLStreamWriter- Throws:
XMLStreamException
-
writeCharacters
Forwards the call verbatim.- Specified by:
writeCharactersin interfaceXMLStreamWriter- Throws:
XMLStreamException
-
getPrefix
Forwards the call verbatim.- Specified by:
getPrefixin interfaceXMLStreamWriter- Throws:
XMLStreamException
-
setPrefix
Forwards the call verbatim.- Specified by:
setPrefixin interfaceXMLStreamWriter- Throws:
XMLStreamException
-
setDefaultNamespace
Forwards the call verbatim.- Specified by:
setDefaultNamespacein interfaceXMLStreamWriter- Throws:
XMLStreamException
-
setNamespaceContext
Forwards the call verbatim.- Specified by:
setNamespaceContextin interfaceXMLStreamWriter- Throws:
XMLStreamException
-
getNamespaceContext
Forwards the call verbatim.- Specified by:
getNamespaceContextin interfaceXMLStreamWriter
-
getProperty
Forwards the call verbatim.- Specified by:
getPropertyin interfaceXMLStreamWriter- Throws:
IllegalArgumentException
-