| java.io.PipedInputStream org.apache.tools.ant.util.LeadPipeInputStream
LeadPipeInputStream | public class LeadPipeInputStream extends PipedInputStream (Code) | | Special PipedInputStream that will not die
when the writing Thread is no longer alive.
since: Ant 1.6.2 |
Method Summary | |
public void | log(String message, int loglevel) Log a message with the specified logging level. | public synchronized int | read() Read a byte from the stream. | public synchronized void | setBufferSize(int size) Set the size of the buffer.
Parameters: size - the new buffer size. | public void | setManagingComponent(ProjectComponent pc) Set a managing ProjectComponent for
this LeadPipeInputStream . | public void | setManagingTask(Task task) Set a managing Task for
this LeadPipeInputStream . |
LeadPipeInputStream | public LeadPipeInputStream()(Code) | | Construct a new LeadPipeInputStream .
|
LeadPipeInputStream | public LeadPipeInputStream(int size)(Code) | | Construct a new LeadPipeInputStream
with the specified buffer size.
Parameters: size - the size of the circular buffer. |
LeadPipeInputStream | public LeadPipeInputStream(PipedOutputStream src) throws IOException(Code) | | Construct a new LeadPipeInputStream to pull
from the specified PipedOutputStream .
Parameters: src - the PipedOutputStream source. throws: IOException - if unable to construct the stream. |
LeadPipeInputStream | public LeadPipeInputStream(PipedOutputStream src, int size) throws IOException(Code) | | Construct a new LeadPipeInputStream to pull
from the specified PipedOutputStream , using a
circular buffer of the specified size.
Parameters: src - the PipedOutputStream source. Parameters: size - the size of the circular buffer. throws: IOException - if there is an error. |
log | public void log(String message, int loglevel)(Code) | | Log a message with the specified logging level.
Parameters: message - the String message. Parameters: loglevel - the int logging level. |
read | public synchronized int read() throws IOException(Code) | | Read a byte from the stream.
the byte (0 to 255) or -1 if there are no more. throws: IOException - if there is an error. |
setBufferSize | public synchronized void setBufferSize(int size)(Code) | | Set the size of the buffer.
Parameters: size - the new buffer size. Ignored if <= current size. |
setManagingComponent | public void setManagingComponent(ProjectComponent pc)(Code) | | Set a managing ProjectComponent for
this LeadPipeInputStream .
Parameters: pc - the managing ProjectComponent . |
setManagingTask | public void setManagingTask(Task task)(Code) | | Set a managing Task for
this LeadPipeInputStream .
Parameters: task - the managing Task . |
|
|