类 JConsole.BlockingPipedInputStream

  • 所有已实现的接口:
    java.io.Closeable, java.lang.AutoCloseable
    封闭类:
    JConsole

    public static class JConsole.BlockingPipedInputStream
    extends java.io.PipedInputStream
    The overridden read method in this class will not throw "Broken pipe" IOExceptions; It will simply wait for new writers and data. This is used by the JConsole internal read thread to allow writers in different (and in particular ephemeral) threads to write to the pipe. It also checks a little more frequently than the original read(). Warning: read() will not even error on a read to an explicitly closed pipe (override closed to for that).
    • 字段概要

      • 从类继承的字段 java.io.PipedInputStream

        buffer, in, out, PIPE_SIZE
    • 方法概要

      所有方法 实例方法 具体方法 
      修饰符和类型 方法 说明
      void close()  
      int read()  
      • 从类继承的方法 java.io.PipedInputStream

        available, connect, read, receive
      • 从类继承的方法 java.io.InputStream

        mark, markSupported, nullInputStream, read, readAllBytes, readNBytes, readNBytes, reset, skip, transferTo
      • 从类继承的方法 java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 构造器详细资料

      • BlockingPipedInputStream

        public BlockingPipedInputStream​(java.io.PipedOutputStream pout)
                                 throws java.io.IOException
        抛出:
        java.io.IOException
    • 方法详细资料

      • read

        public int read()
                 throws java.io.IOException
        覆盖:
        read 在类中 java.io.PipedInputStream
        抛出:
        java.io.IOException
      • close

        public void close()
                   throws java.io.IOException
        指定者:
        close 在接口中 java.lang.AutoCloseable
        指定者:
        close 在接口中 java.io.Closeable
        覆盖:
        close 在类中 java.io.PipedInputStream
        抛出:
        java.io.IOException