bsh.util

Class JConsole.BlockingPipedInputStream

Enclosing Class:
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).

Constructor Summary

BlockingPipedInputStream(PipedOutputStream pout)

Method Summary

void
close()
int
read()

Constructor Details

BlockingPipedInputStream

public BlockingPipedInputStream(PipedOutputStream pout)
            throws IOException

Method Details

close

public void close()
            throws IOException

read

public int read()
            throws IOException

© 2000-2005 pat@pat.net :-)