public interface SinkFactory
Sink
object.Modifier and Type | Method and Description |
---|---|
Sink |
createSink(File outputDir,
String outputName)
Create a
Sink into a file. |
Sink |
createSink(File outputDir,
String outputName,
String encoding)
Create a
Sink into a file using a specified encoding. |
Sink |
createSink(OutputStream out)
Create a
Sink into an OutputStream. |
Sink |
createSink(OutputStream out,
String encoding)
Create a
Sink into an OutputStream using a specified encoding. |
Sink createSink(File outputDir, String outputName) throws IOException
Sink
into a file.outputDir
- the not-null output dir.outputName
- the not-null output name.Sink
instance with a file as output.IOException
- if any.Sink createSink(File outputDir, String outputName, String encoding) throws IOException
Sink
into a file using a specified encoding.outputDir
- the not-null output dir.outputName
- the not-null output name.encoding
- the output encoding.Sink
instance with a file as output and using specified encoding.IOException
- if any.createSink(File, String)
Sink createSink(OutputStream out) throws IOException
Sink
into an OutputStream.out
- not null OutputStream to write the result.Sink
instance.IOException
- if any.Sink createSink(OutputStream out, String encoding) throws IOException
Sink
into an OutputStream using a specified encoding.out
- not null OutputStream to write the result.encoding
- the output encoding.Sink
instance using specified encoding.IOException
- if any.Copyright © 2005–2024 The Apache Software Foundation. All rights reserved.