ca.krasnay.scaffold.io
Class OutputStreamSink

java.lang.Object
  extended by ca.krasnay.scaffold.io.OutputStreamSink
All Implemented Interfaces:
Sink

public class OutputStreamSink
extends Object
implements Sink


Constructor Summary
OutputStreamSink(OutputStream out)
           
 
Method Summary
 void close(OutputStream out)
          Closes the given stream.
 OutputStream getOutputStream()
          Returns a new output stream on the sink.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OutputStreamSink

public OutputStreamSink(OutputStream out)
Method Detail

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.