Package org.apache.maven.doxia.sink.impl
Class AbstractXmlSinkFactory
java.lang.Object
org.apache.maven.doxia.sink.impl.AbstractTextSinkFactory
org.apache.maven.doxia.sink.impl.AbstractXmlSinkFactory
- All Implemented Interfaces:
org.apache.maven.doxia.sink.SinkFactory
An abstract
SinkFactory
for XML markup syntax. UTF-8
is used
when no encoding is specified.- Since:
- 1.1
- Author:
- Vincent Siveton
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract org.apache.maven.doxia.sink.Sink
createSink
(Writer writer, String encoding, String languageId) Create a text Sink for a given encoding and for a given language identifier.Methods inherited from class org.apache.maven.doxia.sink.impl.AbstractTextSinkFactory
createSink, createSink, createSink, createSink, createSink
-
Constructor Details
-
AbstractXmlSinkFactory
public AbstractXmlSinkFactory()
-
-
Method Details
-
createSink
protected abstract org.apache.maven.doxia.sink.Sink createSink(Writer writer, String encoding, String languageId) Create a text Sink for a given encoding and for a given language identifier.- Parameters:
writer
- The writer for the sink output, nevernull
.encoding
- The character encoding used by the writer.languageId
- language identifier for the root element as defined by IETF BCP 47, Tags for the Identification of Languages; in addition, the empty string may be specified.- Returns:
- a Sink for XML output in the given encoding.
- See Also:
-