public class ProxyOutputStream extends FilterOutputStream
FilterOutputStream
where the delegate can also be changed after construction.out
Constructor and Description |
---|
ProxyOutputStream(OutputStream delegate) |
Modifier and Type | Method and Description |
---|---|
void |
setDelegate(OutputStream delegate) |
void |
write(byte[] ba,
int off,
int len) |
close, flush, write, write
public ProxyOutputStream(OutputStream delegate)
public void setDelegate(OutputStream delegate)
delegate
- The new delegatepublic void write(byte[] ba, int off, int len) throws IOException
write
in class FilterOutputStream
IOException
Copyright © 2018 Arno Unkrig. All rights reserved.