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 java.lang.Object implements SinkFactory
An abstractSinkFactoryfor binary output.- Since:
- 1.1
- Version:
- $Id: AbstractBinarySinkFactory.java 1726411 2016-01-23 16:34:09Z hboutemy $
- 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(java.io.File outputDir, java.lang.String outputName)Create aSinkinto a file.SinkcreateSink(java.io.File outputDir, java.lang.String outputName, java.lang.String encoding)Create aSinkinto a file using a specified encoding.SinkcreateSink(java.io.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(java.io.File outputDir, java.lang.String outputName) throws java.io.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:
java.io.IOException- if any
-
createSink
public Sink createSink(java.io.File outputDir, java.lang.String outputName, java.lang.String encoding) throws java.io.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:
java.io.IOException- if any- See Also:
SinkFactory.createSink(File, String)
-
createSink
public Sink createSink(java.io.OutputStream out) throws java.io.IOException
Create aSinkinto an OutputStream.- Specified by:
createSinkin interfaceSinkFactory- Parameters:
out- not null OutputStream to write the result.- Returns:
- a
Sinkinstance. - Throws:
java.io.IOException- if any
-
-