public class ProxyOutputStream
extends java.io.FilterOutputStream
See the protected methods for ways in which a subclass can easily decorate a stream with custom pre-, post- or error processing functionality.
| Constructor and Description |
|---|
ProxyOutputStream(java.io.OutputStream proxy)
Constructs a new ProxyOutputStream.
|
| 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[] bts)
Invokes the delegate's
write(byte[]) method. |
void |
write(byte[] bts,
int st,
int end)
Invokes the delegate's
write(byte[]) method. |
void |
write(int idx)
Invokes the delegate's
write(int) method. |
public ProxyOutputStream(java.io.OutputStream proxy)
proxy - the OutputStream to delegate topublic void close()
throws java.io.IOException
close() method.close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class java.io.FilterOutputStreamjava.io.IOException - if an I/O error occurs.public void flush()
throws java.io.IOException
flush() method.flush in interface java.io.Flushableflush in class java.io.FilterOutputStreamjava.io.IOException - if an I/O error occurs.public void write(byte[] bts)
throws java.io.IOException
write(byte[]) method.write in class java.io.FilterOutputStreambts - the bytes to writejava.io.IOException - if an I/O error occurs.public void write(byte[] bts,
int st,
int end)
throws java.io.IOException
write(byte[]) method.write in class java.io.FilterOutputStreambts - the bytes to writest - The start offsetend - The number of bytes to writejava.io.IOException - if an I/O error occurs.public void write(int idx)
throws java.io.IOException
write(int) method.write in class java.io.FilterOutputStreamidx - the byte to writejava.io.IOException - if an I/O error occurs.Copyright © 2010 - 2023 Adobe. All Rights Reserved