ca.krasnay.scaffold.io
Class FileSink
java.lang.Object
ca.krasnay.scaffold.io.FileSink
- All Implemented Interfaces:
- Sink
public class FileSink
- extends Object
- implements Sink
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FileSink
public FileSink(File file)
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.