Package org.apache.maven.doxia.sink.impl
Class AbstractBinarySinkFactory
- java.lang.Object
-
- org.apache.maven.doxia.sink.impl.AbstractBinarySinkFactory
-
- All Implemented Interfaces:
SinkFactory
- Direct Known Subclasses:
RtfSinkFactory
public abstract class AbstractBinarySinkFactory extends Object implements SinkFactory
An abstractSinkFactoryfor binary output.- Since:
- 1.1
- Author:
- Hervé Boutemy
-
-
Field Summary
-
Fields inherited from interface org.apache.maven.doxia.sink.SinkFactory
ROLE
-
-
Constructor Summary
Constructors Constructor Description AbstractBinarySinkFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SinkcreateSink(File outputDir, String outputName)Create aSinkinto a file.SinkcreateSink(File outputDir, String outputName, String encoding)Create aSinkinto a file using a specified encoding.SinkcreateSink(OutputStream out)Create aSinkinto an OutputStream.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.maven.doxia.sink.SinkFactory
createSink
-
-
-
-
Method Detail
-
createSink
public Sink createSink(File outputDir, String outputName) throws IOException
Create aSinkinto a file.- Specified by:
createSinkin interfaceSinkFactory- Parameters:
outputDir- the not-null output dir.outputName- the not-null output name.- Returns:
- a
Sinkinstance with a file as output. - Throws:
IOException- if any.
-
createSink
public Sink createSink(File outputDir, String outputName, String encoding) throws IOException
Create aSinkinto a file using a specified encoding.- Specified by:
createSinkin interfaceSinkFactory- Parameters:
outputDir- the not-null output dir.outputName- the not-null output name.encoding- the output encoding.- Returns:
- a
Sinkinstance with a file as output and using specified encoding. - Throws:
IOException- if any.- See Also:
SinkFactory.createSink(File, String)
-
createSink
public Sink createSink(OutputStream out) throws IOException
Create aSinkinto an OutputStream.- Specified by:
createSinkin interfaceSinkFactory- Parameters:
out- not null OutputStream to write the result.- Returns:
- a
Sinkinstance. - Throws:
IOException- if any.
-
-