Class SwitchableInputStream

java.lang.Object
java.io.InputStream
java.io.FilterInputStream
org.jboss.netty.handler.codec.serialization.SwitchableInputStream
All Implemented Interfaces:
Closeable, AutoCloseable

final class SwitchableInputStream extends FilterInputStream
FilterInputStream which allows a user to change the underlying stream at any time.
  • Constructor Details

    • SwitchableInputStream

      SwitchableInputStream()
      Creates a new instance without initializing the reference to the underlying stream.
  • Method Details

    • switchStream

      void switchStream(InputStream in)
      Creates a new instance with the initial reference to the underlying stream.