public class ReusableInputStream
extends java.io.FilterInputStream
InputStream
wrapper that allows switching to different underlying InputStream
s under the same InputStream
instance.Modifier | Constructor and Description |
---|---|
protected |
ReusableInputStream(java.io.InputStream in) |
Modifier and Type | Method and Description |
---|---|
java.io.InputStream |
setInputStream(java.io.InputStream newIn)
Sets a new underlying
InputStream in this ReusableInputStream . |
public java.io.InputStream setInputStream(java.io.InputStream newIn)
InputStream
in this ReusableInputStream
.newIn
- the new InputStream
to set.InputStream
.