org.apache.tools.ant.util
Class LeadPipeInputStream
PipedInputStream
org.apache.tools.ant.util.LeadPipeInputStream
public class LeadPipeInputStream
extends PipedInputStream
Special PipedInputStream
that will not die
when the writing Thread
is no longer alive.
- Ant 1.6.2
LeadPipeInputStream() - Construct a new
LeadPipeInputStream .
|
LeadPipeInputStream(PipedOutputStream src) - Construct a new
LeadPipeInputStream to pull
from the specified PipedOutputStream .
|
LeadPipeInputStream(PipedOutputStream src, int size) - Construct a new
LeadPipeInputStream to pull
from the specified PipedOutputStream , using a
circular buffer of the specified size.
|
LeadPipeInputStream(int size) - Construct a new
LeadPipeInputStream
with the specified buffer size.
|
void | log(String message, int loglevel) - Log a message with the specified logging level.
|
int | read()
|
void | setBufferSize(int size) - Set the size of the buffer.
|
void | setManagingTask(Task task) - Set a managing
Task for
this LeadPipeInputStream .
|
LeadPipeInputStream
public LeadPipeInputStream()
Construct a new LeadPipeInputStream
.
LeadPipeInputStream
public LeadPipeInputStream(PipedOutputStream src)
throws IOException
Construct a new LeadPipeInputStream
to pull
from the specified PipedOutputStream
.
src
- the PipedOutputStream
source.
LeadPipeInputStream
public LeadPipeInputStream(PipedOutputStream src,
int size)
throws IOException
Construct a new LeadPipeInputStream
to pull
from the specified PipedOutputStream
, using a
circular buffer of the specified size.
src
- the PipedOutputStream
source.size
- the size of the circular buffer.
LeadPipeInputStream
public LeadPipeInputStream(int size)
Construct a new LeadPipeInputStream
with the specified buffer size.
size
- the size of the circular buffer.
log
public void log(String message,
int loglevel)
Log a message with the specified logging level.
message
- the String
message.loglevel
- the int
logging level.
read
public int read()
throws IOException
setBufferSize
public void setBufferSize(int size)
Set the size of the buffer.
size
- the new buffer size. Ignored if <= current size.
setManagingTask
public void setManagingTask(Task task)
Set a managing Task
for
this LeadPipeInputStream
.
task
- the managing Task
.
Copyright B) 2000-2005 Apache Software Foundation. All Rights Reserved.