public class ReusableOutputStream
extends java.io.FilterOutputStream
OutputStream wrapper that allows switching to different underlying OutputStreams under the same OutputStream instance.| Modifier | Constructor and Description |
|---|---|
protected |
ReusableOutputStream(java.io.OutputStream out) |
| Modifier and Type | Method and Description |
|---|---|
java.io.OutputStream |
setOutputStream(java.io.OutputStream newOut)
Sets a new underlying
OutputStream in this ReusableOutputStream. |
public java.io.OutputStream setOutputStream(java.io.OutputStream newOut)
OutputStream in this ReusableOutputStream.newOut - the new OutputStream to set.OutputStream.