public class SynchronizedOutputStream extends ProxyOutputStream
out| Constructor and Description |
|---|
SynchronizedOutputStream(OutputStream delegate) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Invokes the delegate's
close() method. |
void |
flush()
Invokes the delegate's
flush() method. |
void |
write(byte[] b)
Invokes the delegate's
write(byte[]) method. |
void |
write(byte[] b,
int off,
int len)
Invokes the delegate's
write(byte[]) method. |
void |
write(int b)
Invokes the delegate's
write(int) method. |
afterWrite, beforeWrite, handleIOExceptionpublic SynchronizedOutputStream(OutputStream delegate)
public void write(int b)
throws IOException
ProxyOutputStreamwrite(int) method.write in class ProxyOutputStreamb - the byte to writeIOException - if an I/O error occurspublic void write(byte[] b,
int off,
int len)
throws IOException
ProxyOutputStreamwrite(byte[]) method.write in class ProxyOutputStreamb - the bytes to writeoff - The start offsetlen - The number of bytes to writeIOException - if an I/O error occurspublic void write(byte[] b)
throws IOException
ProxyOutputStreamwrite(byte[]) method.write in class ProxyOutputStreamb - the bytes to writeIOException - if an I/O error occurspublic void close()
throws IOException
ProxyOutputStreamclose() method.close in interface Closeableclose in interface AutoCloseableclose in class ProxyOutputStreamIOException - if an I/O error occurspublic void flush()
throws IOException
ProxyOutputStreamflush() method.flush in interface Flushableflush in class ProxyOutputStreamIOException - if an I/O error occursCopyright © 2013–2019 mklinger GmbH. All rights reserved.