Class RtfSinkFactory

java.lang.Object
org.apache.maven.doxia.sink.impl.AbstractBinarySinkFactory
org.apache.maven.doxia.module.rtf.RtfSinkFactory
All Implemented Interfaces:
SinkFactory

@Component(role=SinkFactory.class, hint="rtf") public class RtfSinkFactory extends AbstractBinarySinkFactory
Rtf implementation of the Sink factory.
Since:
1.0
  • Constructor Details

    • RtfSinkFactory

      public RtfSinkFactory()
  • Method Details

    • createSink

      public Sink createSink(OutputStream out, String encoding) throws IOException
      Create a Sink into an OutputStream using a specified encoding.
      Parameters:
      out - not null OutputStream to write the result.
      encoding - the output encoding.
      Returns:
      a Sink instance using specified encoding.
      Throws:
      IOException - if any.