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
An abstract
SinkFactory for binary output.- Since:
- 1.1
-
Field Summary
Fields inherited from interface org.apache.maven.doxia.sink.SinkFactory
ROLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateSink(File outputDir, String outputName) Create aSinkinto a file.createSink(File outputDir, String outputName, String encoding) Create aSinkinto a file using a specified encoding.createSink(OutputStream out) Create aSinkinto an OutputStream.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.maven.doxia.sink.SinkFactory
createSink
-
Constructor Details
-
AbstractBinarySinkFactory
public AbstractBinarySinkFactory()
-
-
Method Details
-
createSink
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
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:
-
createSink
Create aSinkinto an OutputStream.- Specified by:
createSinkin interfaceSinkFactory- Parameters:
out- not null OutputStream to write the result.- Returns:
- a
Sinkinstance. - Throws:
IOException- if any.
-