Class AbstractXmlSinkFactory

  • All Implemented Interfaces:
    org.apache.maven.doxia.sink.SinkFactory

    public abstract class AbstractXmlSinkFactory
    extends AbstractTextSinkFactory
    An abstract SinkFactory for XML markup syntax. UTF-8 is used when no encoding is specified.
    Since:
    1.1
    Author:
    Vincent Siveton
    • Field Summary

      • Fields inherited from interface org.apache.maven.doxia.sink.SinkFactory

        ROLE
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      protected abstract org.apache.maven.doxia.sink.Sink createSink​(java.io.Writer writer, java.lang.String encoding, java.lang.String languageId)
      Create a text Sink for a given encoding and for a given language identifier.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AbstractXmlSinkFactory

        public AbstractXmlSinkFactory()
    • Method Detail

      • createSink

        protected abstract org.apache.maven.doxia.sink.Sink createSink​(java.io.Writer writer,
                                                                       java.lang.String encoding,
                                                                       java.lang.String languageId)
        Create a text Sink for a given encoding and for a given language identifier.
        Parameters:
        writer - The writer for the sink output, never null.
        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:
        http://www.w3.org/TR/REC-xml/#sec-lang-tag