ca.krasnay.scaffold.io
Class FileSink

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

public class FileSink
extends Object
implements Sink


Constructor Summary
FileSink(File file)
           
 
Method Summary
 void close(OutputStream in)
          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

FileSink

public FileSink(File file)
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 in)
Description copied from interface: Sink
Closes the given stream.

Specified by:
close in interface Sink
Parameters:
in - Stream returned by Sink.getOutputStream(). May be null.


Copyright © 2015. All rights reserved.