Class Xhtml5SinkFactory
java.lang.Object
org.apache.maven.doxia.sink.impl.AbstractTextSinkFactory
org.apache.maven.doxia.sink.impl.AbstractXmlSinkFactory
org.apache.maven.doxia.module.xhtml5.Xhtml5SinkFactory
- All Implemented Interfaces:
SinkFactory
@Component(role=SinkFactory.class,
hint="xhtml5")
public class Xhtml5SinkFactory
extends AbstractXmlSinkFactory
Xhtml implementation of the Sink factory.
-
Field Summary
Fields inherited from interface org.apache.maven.doxia.sink.SinkFactory
ROLE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Sink
createSink
(Writer writer, String encoding) Create a text Sink for a given encoding.protected 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
-
Constructor Details
-
Xhtml5SinkFactory
public Xhtml5SinkFactory()
-
-
Method Details
-
createSink
Create a text Sink for a given encoding.- Specified by:
createSink
in classAbstractTextSinkFactory
- Parameters:
writer
- The writer for the sink output, nevernull
.encoding
- The character encoding used by the writer.- Returns:
- a Sink for text output in the given encoding.
-
createSink
Create a text Sink for a given encoding and for a given language identifier.- Specified by:
createSink
in classAbstractXmlSinkFactory
- 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:
-