Class AbstractXmlSinkFactory

    • Constructor Detail

      • AbstractXmlSinkFactory

        public AbstractXmlSinkFactory()
    • Method Detail

      • createSink

        protected abstract 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