it.geosolutions.io.output.adapter
Class OutputStreamAdapter
Object
OutputStream
OutputStreamAdapter
- All Implemented Interfaces:
- Closeable, Flushable
public final class OutputStreamAdapter
- extends OutputStream
- Author:
- Simone Giannecchini, GeoSolutions
|
Method Summary |
void |
close()
|
void |
flush()
Flushes this output stream and forces any buffered output bytes to be
written out. |
void |
write(byte[] b)
|
void |
write(byte[] b,
int off,
int len)
|
void |
write(int b)
|
| Methods inherited from class Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OutputStreamAdapter
public OutputStreamAdapter(ImageOutputStream stream)
close
public void close()
throws IOException
- Specified by:
close in interface Closeable- Overrides:
close in class OutputStream
- Throws:
IOException
flush
public void flush()
throws IOException
- Flushes this output stream and forces any buffered output bytes to be
written out. The general contract of
flush is that calling
it is an indication that, if any bytes previously written have been
buffered by the implementation of the output stream, such bytes should
immediately be written to their intended destination.
The flush method of OutputStream does
nothing.
- Specified by:
flush in interface Flushable- Overrides:
flush in class OutputStream
- Throws:
IOException - if an I/O error occurs.
write
public void write(byte[] b)
throws IOException
- Overrides:
write in class OutputStream
- Throws:
IOException
write
public void write(byte[] b,
int off,
int len)
throws IOException
- Overrides:
write in class OutputStream
- Throws:
IOException
write
public void write(int b)
throws IOException
- Specified by:
write in class OutputStream
- Throws:
IOException
Copyright © 2006-2012 GeoSolutions. All Rights Reserved.