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
ConstructorsModifierConstructorDescriptionprotected
Creates a new filter. -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
Forwards the call verbatim.void
flush()
Forwards the call verbatim.Forwards the call verbatim.Forwards the call verbatim.getProperty
(String name) Forwards the call verbatim.void
Forwards the call verbatim.void
setNamespaceContext
(NamespaceContext context) Forwards the call verbatim.void
Forwards the call verbatim.void
writeAttribute
(String localName, String value) Forwards the call verbatim.void
writeAttribute
(String namespaceURI, String localName, String value) Forwards the call verbatim.void
writeAttribute
(String prefix, String namespaceURI, String localName, String value) Forwards the call verbatim.void
writeCData
(String data) Forwards the call verbatim.void
writeCharacters
(char[] text, int start, int len) Forwards the call verbatim.void
writeCharacters
(String text) Forwards the call verbatim.void
writeComment
(String data) Forwards the call verbatim.void
writeDefaultNamespace
(String namespaceURI) Forwards the call verbatim.void
Forwards the call verbatim.void
writeEmptyElement
(String localName) Forwards the call verbatim.void
writeEmptyElement
(String namespaceURI, String localName) Forwards the call verbatim.void
writeEmptyElement
(String prefix, String localName, String namespaceURI) Forwards the call verbatim.void
Forwards the call verbatim.void
Forwards the call verbatim.void
writeEntityRef
(String name) Forwards the call verbatim.void
writeNamespace
(String prefix, String namespaceURI) Forwards the call verbatim.void
writeProcessingInstruction
(String target) Forwards the call verbatim.void
writeProcessingInstruction
(String target, String data) Forwards the call verbatim.void
Forwards the call verbatim.void
writeStartDocument
(String version) Forwards the call verbatim.void
writeStartDocument
(String encoding, String version) Forwards the call verbatim.void
writeStartElement
(String localName) Forwards the call verbatim.void
writeStartElement
(String namespaceURI, String localName) Forwards the call verbatim.void
writeStartElement
(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:
writeStartElement
in interfaceXMLStreamWriter
- Throws:
XMLStreamException
-
writeStartElement
Forwards the call verbatim.- Specified by:
writeStartElement
in interfaceXMLStreamWriter
- Throws:
XMLStreamException
-
writeStartElement
public void writeStartElement(String prefix, String localName, String namespaceURI) throws XMLStreamException Forwards the call verbatim.- Specified by:
writeStartElement
in interfaceXMLStreamWriter
- Throws:
XMLStreamException
-
writeEmptyElement
Forwards the call verbatim.- Specified by:
writeEmptyElement
in interfaceXMLStreamWriter
- Throws:
XMLStreamException
-
writeEmptyElement
Forwards the call verbatim.- Specified by:
writeEmptyElement
in interfaceXMLStreamWriter
- Throws:
XMLStreamException
-
writeEmptyElement
public void writeEmptyElement(String prefix, String localName, String namespaceURI) throws XMLStreamException Forwards the call verbatim.- Specified by:
writeEmptyElement
in interfaceXMLStreamWriter
- Throws:
XMLStreamException
-
writeEndElement
Forwards the call verbatim.- Specified by:
writeEndElement
in interfaceXMLStreamWriter
- Throws:
XMLStreamException
-
writeEndDocument
Forwards the call verbatim.- Specified by:
writeEndDocument
in interfaceXMLStreamWriter
- Throws:
XMLStreamException
-
close
Forwards the call verbatim.- Specified by:
close
in interfaceXMLStreamWriter
- Throws:
XMLStreamException
-
flush
Forwards the call verbatim.- Specified by:
flush
in interfaceXMLStreamWriter
- Throws:
XMLStreamException
-
writeAttribute
Forwards the call verbatim.- Specified by:
writeAttribute
in interfaceXMLStreamWriter
- Throws:
XMLStreamException
-
writeAttribute
public void writeAttribute(String prefix, String namespaceURI, String localName, String value) throws XMLStreamException Forwards the call verbatim.- Specified by:
writeAttribute
in interfaceXMLStreamWriter
- Throws:
XMLStreamException
-
writeAttribute
public void writeAttribute(String namespaceURI, String localName, String value) throws XMLStreamException Forwards the call verbatim.- Specified by:
writeAttribute
in interfaceXMLStreamWriter
- Throws:
XMLStreamException
-
writeNamespace
Forwards the call verbatim.- Specified by:
writeNamespace
in interfaceXMLStreamWriter
- Throws:
XMLStreamException
-
writeDefaultNamespace
Forwards the call verbatim.- Specified by:
writeDefaultNamespace
in interfaceXMLStreamWriter
- Throws:
XMLStreamException
-
writeComment
Forwards the call verbatim.- Specified by:
writeComment
in interfaceXMLStreamWriter
- Throws:
XMLStreamException
-
writeProcessingInstruction
Forwards the call verbatim.- Specified by:
writeProcessingInstruction
in interfaceXMLStreamWriter
- Throws:
XMLStreamException
-
writeProcessingInstruction
Forwards the call verbatim.- Specified by:
writeProcessingInstruction
in interfaceXMLStreamWriter
- Throws:
XMLStreamException
-
writeCData
Forwards the call verbatim.- Specified by:
writeCData
in interfaceXMLStreamWriter
- Throws:
XMLStreamException
-
writeDTD
Forwards the call verbatim.- Specified by:
writeDTD
in interfaceXMLStreamWriter
- Throws:
XMLStreamException
-
writeEntityRef
Forwards the call verbatim.- Specified by:
writeEntityRef
in interfaceXMLStreamWriter
- Throws:
XMLStreamException
-
writeStartDocument
Forwards the call verbatim.- Specified by:
writeStartDocument
in interfaceXMLStreamWriter
- Throws:
XMLStreamException
-
writeStartDocument
Forwards the call verbatim.- Specified by:
writeStartDocument
in interfaceXMLStreamWriter
- Throws:
XMLStreamException
-
writeStartDocument
Forwards the call verbatim.- Specified by:
writeStartDocument
in interfaceXMLStreamWriter
- Throws:
XMLStreamException
-
writeCharacters
Forwards the call verbatim.- Specified by:
writeCharacters
in interfaceXMLStreamWriter
- Throws:
XMLStreamException
-
writeCharacters
Forwards the call verbatim.- Specified by:
writeCharacters
in interfaceXMLStreamWriter
- Throws:
XMLStreamException
-
getPrefix
Forwards the call verbatim.- Specified by:
getPrefix
in interfaceXMLStreamWriter
- Throws:
XMLStreamException
-
setPrefix
Forwards the call verbatim.- Specified by:
setPrefix
in interfaceXMLStreamWriter
- Throws:
XMLStreamException
-
setDefaultNamespace
Forwards the call verbatim.- Specified by:
setDefaultNamespace
in interfaceXMLStreamWriter
- Throws:
XMLStreamException
-
setNamespaceContext
Forwards the call verbatim.- Specified by:
setNamespaceContext
in interfaceXMLStreamWriter
- Throws:
XMLStreamException
-
getNamespaceContext
Forwards the call verbatim.- Specified by:
getNamespaceContext
in interfaceXMLStreamWriter
-
getProperty
Forwards the call verbatim.- Specified by:
getProperty
in interfaceXMLStreamWriter
- Throws:
IllegalArgumentException
-