ca.krasnay.scaffold.io
Class OutputStreamSink
java.lang.Object
ca.krasnay.scaffold.io.OutputStreamSink
- All Implemented Interfaces:
- Sink
public class OutputStreamSink
- extends Object
- implements Sink
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OutputStreamSink
public OutputStreamSink(OutputStream out)
getOutputStream
public OutputStream getOutputStream()
throws IOException
- Description copied from interface:
Sink
- Returns a new output stream on the sink.
- Specified by:
getOutputStream in interface Sink
- Throws:
IOException
close
public void close(OutputStream out)
- Description copied from interface:
Sink
- Closes the given stream.
- Specified by:
close in interface Sink
- Parameters:
out - Stream returned by Sink.getOutputStream(). May be null.
Copyright © 2015. All rights reserved.