ca.krasnay.scaffold.io
Interface Sink

All Known Implementing Classes:
FileSink, OutputStreamSink

public interface Sink

Represents a place to which bytes can be sent.

Author:
John Krasnay

Method Summary
 void close(OutputStream out)
          Closes the given stream.
 OutputStream getOutputStream()
          Returns a new output stream on the sink.
 

Method Detail

getOutputStream

OutputStream getOutputStream()
                             throws IOException
Returns a new output stream on the sink.

Throws:
IOException

close

void close(OutputStream out)
Closes the given stream.

Parameters:
out - Stream returned by getOutputStream(). May be null.


Copyright © 2015. All rights reserved.