public final class OutputStreamAdapter extends OutputStream
Constructor and Description |
---|
OutputStreamAdapter(ImageOutputStream stream) |
Modifier and Type | Method and Description |
---|---|
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) |
public OutputStreamAdapter(ImageOutputStream stream)
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class OutputStream
IOException
public void flush() throws IOException
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.
flush
in interface Flushable
flush
in class OutputStream
IOException
- if an I/O error occurs.public void write(byte[] b) throws IOException
write
in class OutputStream
IOException
public void write(byte[] b, int off, int len) throws IOException
write
in class OutputStream
IOException
public void write(int b) throws IOException
write
in class OutputStream
IOException
Copyright © 2006–2019 GeoSolutions. All rights reserved.