|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.io.OutputStream java.io.FilterOutputStream org.apache.commons.io.output.ProxyOutputStream
public class ProxyOutputStream
A Proxy stream which acts as expected, that is it passes the method calls on to the proxied stream and doesn't change which methods are being called. It is an alternative base class to FilterOutputStream to increase reusability.
Field Summary |
---|
Fields inherited from class java.io.FilterOutputStream |
---|
out |
Constructor Summary | |
---|---|
ProxyOutputStream(OutputStream proxy)
Constructs a new ProxyOutputStream. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ProxyOutputStream(OutputStream proxy)
proxy
- the OutputStream to delegate toMethod Detail |
---|
public void write(int idx) throws IOException
write(int)
method.
write
in class FilterOutputStream
idx
- the byte to write
IOException
- if an I/O error occurspublic void write(byte[] bts) throws IOException
write(byte[])
method.
write
in class FilterOutputStream
bts
- the bytes to write
IOException
- if an I/O error occurspublic void write(byte[] bts, int st, int end) throws IOException
write(byte[])
method.
write
in class FilterOutputStream
bts
- the bytes to writest
- The start offsetend
- The number of bytes to write
IOException
- if an I/O error occurspublic void flush() throws IOException
flush()
method.
flush
in interface Flushable
flush
in class FilterOutputStream
IOException
- if an I/O error occurspublic void close() throws IOException
close()
method.
close
in interface Closeable
close
in class FilterOutputStream
IOException
- if an I/O error occurs
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |