org.entityfs.util.io
Class DataSinkToOutputStreamAdapter
java.lang.Object
java.io.OutputStream
java.io.FilterOutputStream
org.entityfs.util.io.DataSinkToOutputStreamAdapter
- All Implemented Interfaces:
- Closeable, Flushable
public class DataSinkToOutputStreamAdapter
- extends FilterOutputStream
This object is used to adapt a DataSink to an
OutputStream.
- Since:
- 1.1
- Author:
- Karl Gustafsson
- See Also:
DataSourceToInputStreamAdapter,
OutputStreamToDataSinkAdapter- In_jar:
- entityfs-core
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DataSinkToOutputStreamAdapter
public DataSinkToOutputStreamAdapter(DataSink adapted)
write
public void write(byte[] barr)
throws IOException
- Overrides:
write in class FilterOutputStream
- Throws:
IOException
write
public void write(byte[] barr,
int off,
int len)
throws IOException
- Overrides:
write in class FilterOutputStream
- Throws:
IOException
write
public void write(int b)
throws IOException
- Overrides:
write in class FilterOutputStream
- Throws:
IOException
flush
public void flush()
throws IOException
- Specified by:
flush in interface Flushable- Overrides:
flush in class FilterOutputStream
- Throws:
IOException
close
public void close()
throws IOException
- Specified by:
close in interface Closeable- Overrides:
close in class FilterOutputStream
- Throws:
IOException