类 JConsole.BlockingPipedInputStream
- java.lang.Object
-
- java.io.InputStream
-
- java.io.PipedInputStream
-
- org.meteoinfo.console.JConsole.BlockingPipedInputStream
-
- 所有已实现的接口:
Closeable,AutoCloseable
- 封闭类:
- JConsole
public static class JConsole.BlockingPipedInputStream extends 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
-
-
构造器概要
构造器 构造器 说明 BlockingPipedInputStream(PipedOutputStream pout)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 voidclose()intread()-
从类继承的方法 java.io.PipedInputStream
available, connect, read, receive
-
从类继承的方法 java.io.InputStream
mark, markSupported, read, reset, skip
-
-
-
-
构造器详细资料
-
BlockingPipedInputStream
public BlockingPipedInputStream(PipedOutputStream pout) throws IOException
- 抛出:
IOException
-
-
方法详细资料
-
read
public int read() throws IOException- 覆盖:
read在类中PipedInputStream- 抛出:
IOException
-
close
public void close() throws IOException- 指定者:
close在接口中AutoCloseable- 指定者:
close在接口中Closeable- 覆盖:
close在类中PipedInputStream- 抛出:
IOException
-
-