Class Channel.MyPipedInputStream

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable
    Direct Known Subclasses:
    Channel.PassiveInputStream
    Enclosing class:
    Channel

    class Channel.MyPipedInputStream
    extends java.io.PipedInputStream
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private int BUFFER_SIZE  
      private int max_buffer_size  
      • Fields inherited from class java.io.PipedInputStream

        buffer, in, out, PIPE_SIZE
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      (package private) void checkSpace​(int len)  
      private int freeSpace()  
      void updateReadSide()  
      • Methods inherited from class java.io.PipedInputStream

        available, close, 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

      • BUFFER_SIZE

        private int BUFFER_SIZE
      • max_buffer_size

        private int max_buffer_size
    • Constructor Detail

      • MyPipedInputStream

        MyPipedInputStream()
                    throws java.io.IOException
        Throws:
        java.io.IOException
      • MyPipedInputStream

        MyPipedInputStream​(int size)
                    throws java.io.IOException
        Throws:
        java.io.IOException
      • MyPipedInputStream

        MyPipedInputStream​(int size,
                           int max_buffer_size)
                    throws java.io.IOException
        Throws:
        java.io.IOException
      • MyPipedInputStream

        MyPipedInputStream​(java.io.PipedOutputStream out)
                    throws java.io.IOException
        Throws:
        java.io.IOException
      • MyPipedInputStream

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

      • updateReadSide

        public void updateReadSide()
                            throws java.io.IOException
        Throws:
        java.io.IOException
      • freeSpace

        private int freeSpace()
      • checkSpace

        void checkSpace​(int len)
                 throws java.io.IOException
        Throws:
        java.io.IOException