Class XhtmlSinkFactory

All Implemented Interfaces:
SinkFactory

@Component(role=SinkFactory.class, hint="xhtml") public class XhtmlSinkFactory extends AbstractXmlSinkFactory
Xhtml implementation of the Sink factory.
Since:
1.0
  • Constructor Details

    • XhtmlSinkFactory

      public XhtmlSinkFactory()
  • Method Details

    • createSink

      protected Sink createSink(Writer writer, String encoding)
      Create a text Sink for a given encoding.
      Specified by:
      createSink in class AbstractTextSinkFactory
      Parameters:
      writer - The writer for the sink output, never null.
      encoding - The character encoding used by the writer.
      Returns:
      a Sink for text output in the given encoding.
    • createSink

      protected Sink createSink(Writer writer, String encoding, String languageId)
      Create a text Sink for a given encoding and for a given language identifier.
      Specified by:
      createSink in class AbstractXmlSinkFactory
      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: