Class Channel.PassiveInputStream

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable
    Enclosing class:
    Channel

    class Channel.PassiveInputStream
    extends Channel.MyPipedInputStream
    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) java.io.PipedOutputStream out  
      • Fields inherited from class java.io.PipedInputStream

        buffer, in, PIPE_SIZE
    • Constructor Summary

      Constructors 
      Constructor Description
      PassiveInputStream​(java.io.PipedOutputStream out)  
      PassiveInputStream​(java.io.PipedOutputStream out, int size)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()  
      • Methods inherited from class java.io.PipedInputStream

        available, connect, read, read, receive
      • Methods inherited from class java.io.InputStream

        mark, markSupported, nullInputStream, read, readAllBytes, readNBytes, readNBytes, reset, skip, transferTo
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • out

        java.io.PipedOutputStream out
    • Constructor Detail

      • PassiveInputStream

        PassiveInputStream​(java.io.PipedOutputStream out,
                           int size)
                    throws java.io.IOException
        Throws:
        java.io.IOException
      • PassiveInputStream

        PassiveInputStream​(java.io.PipedOutputStream out)
                    throws java.io.IOException
        Throws:
        java.io.IOException
    • Method Detail

      • close

        public void close()
                   throws java.io.IOException
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable
        Overrides:
        close in class java.io.PipedInputStream
        Throws:
        java.io.IOException