Class SwitchableInputStream
- java.lang.Object
-
- java.io.InputStream
-
- java.io.FilterInputStream
-
- org.jboss.netty.handler.codec.serialization.SwitchableInputStream
-
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
final class SwitchableInputStream extends java.io.FilterInputStream
FilterInputStream
which allows a user to change the underlying stream at any time.
-
-
Constructor Summary
Constructors Constructor Description SwitchableInputStream()
Creates a new instance without initializing the reference to the underlying stream.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) void
switchStream(java.io.InputStream in)
Creates a new instance with the initial reference to the underlying stream.
-