org.apache.maven.doxia.sink
Class AbstractBinarySinkFactory
java.lang.Object
org.apache.maven.doxia.sink.AbstractBinarySinkFactory
- All Implemented Interfaces:
- SinkFactory
- Direct Known Subclasses:
- RtfSinkFactory
public abstract class AbstractBinarySinkFactory
- extends Object
- implements SinkFactory
An abstract SinkFactory
for binary output.
- Since:
- 1.1
- Version:
- $Id: AbstractBinarySinkFactory.java 746978 2009-02-23 12:20:33Z vsiveton $
- Author:
- Hervé Boutemy
Fields inherited from interface org.apache.maven.doxia.sink.SinkFactory |
ROLE |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractBinarySinkFactory
public AbstractBinarySinkFactory()
createSink
public Sink createSink(File outputDir,
String outputName)
throws IOException
- Create a
Sink
into a file.
- Specified by:
createSink
in interface SinkFactory
- Parameters:
outputDir
- the not-null output dir.outputName
- the not-null output name.
- Returns:
- a
Sink
instance with a file as output.
- Throws:
IOException
- if any
createSink
public Sink createSink(File outputDir,
String outputName,
String encoding)
throws IOException
- Create a
Sink
into a file using a specified encoding.
- Specified by:
createSink
in interface SinkFactory
- Parameters:
outputDir
- the not-null output dir.outputName
- the not-null output name.encoding
- the output encoding.
- Returns:
- a
Sink
instance 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 a
Sink
into an OutputStream.
- Specified by:
createSink
in interface SinkFactory
- Parameters:
out
- not null OutputStream to write the result.
- Returns:
- a
Sink
instance.
- Throws:
IOException
- if any
Copyright © 2005-2012 The Apache Software Foundation. All Rights Reserved.