Package org.apache.maven.doxia.sink.impl
Class AbstractTextSinkFactory
java.lang.Object
org.apache.maven.doxia.sink.impl.AbstractTextSinkFactory
- All Implemented Interfaces:
SinkFactory
- Direct Known Subclasses:
AbstractXmlSinkFactory
An abstract
SinkFactory for Text markup syntax. UTF-8 is used
when no encoding is specified.- Since:
- 1.1
- Author:
- Hervé Boutemy, Benjamin Bentmann
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateSink(File outputDir, String outputName) createSink(File outputDir, String outputName, String encoding) createSink(OutputStream out) createSink(OutputStream out, String encoding) protected abstract SinkcreateSink(Writer writer, String encoding) Create a text Sink for a given encoding.
-
Constructor Details
-
AbstractTextSinkFactory
public AbstractTextSinkFactory()
-
-
Method Details
-
createSink
Create a text Sink for a given encoding.- Parameters:
writer- The writer for the sink output, nevernull.encoding- The character encoding used by the writer.- Returns:
- a Sink for text output in the given encoding.
-
createSink
- Specified by:
createSinkin interfaceSinkFactory- Throws:
IOException
-
createSink
- Specified by:
createSinkin interfaceSinkFactory- Throws:
IOException
-
createSink
- Specified by:
createSinkin interfaceSinkFactory- Throws:
IOException
-
createSink
- Specified by:
createSinkin interfaceSinkFactory- Throws:
IOException
-