Package org.apache.maven.doxia.sink
Interface SinkFactory
-
- All Known Implementing Classes:
AbstractBinarySinkFactory,AbstractTextSinkFactory,AbstractXmlSinkFactory,AptSinkFactory,ConfluenceSinkFactory,DocbookSinkFactory,LatexSinkFactory,RtfSinkFactory,TWikiSinkFactory,XdocSinkFactory,Xhtml5SinkFactory,XhtmlSinkFactory
public interface SinkFactoryA factory that creates aSinkobject.- Since:
- 1.0-alpha-9
- Author:
- Kenney Westerhof
-
-
Method Summary
All Methods Instance Methods Abstract 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.SinkcreateSink(OutputStream out, String encoding)Create aSinkinto an OutputStream using a specified encoding.
-
-
-
Field Detail
-
ROLE
static final String ROLE
The Plexus SinkFactory Role.
-
-
Method Detail
-
createSink
Sink createSink(File outputDir, String outputName) throws IOException
Create aSinkinto a file.- 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
Sink createSink(File outputDir, String outputName, String encoding) throws IOException
Create aSinkinto a file using a specified encoding.- 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.- Since:
- 1.1
- See Also:
createSink(File, String)
-
createSink
Sink createSink(OutputStream out) throws IOException
Create aSinkinto an OutputStream.- Parameters:
out- not null OutputStream to write the result.- Returns:
- a
Sinkinstance. - Throws:
IOException- if any.- Since:
- 1.1
-
createSink
Sink createSink(OutputStream out, String encoding) throws IOException
Create aSinkinto an OutputStream using a specified encoding.- Parameters:
out- not null OutputStream to write the result.encoding- the output encoding.- Returns:
- a
Sinkinstance using specified encoding. - Throws:
IOException- if any.- Since:
- 1.1
-
-