| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.io.InputStream
java.io.PipedInputStream
org.apache.tools.ant.util.LeadPipeInputStream
public class LeadPipeInputStream
Special PipedInputStream that will not die
 when the writing Thread is no longer alive.
| Field Summary | 
|---|
| Fields inherited from class java.io.PipedInputStream | 
|---|
| buffer, in, out, PIPE_SIZE | 
| Constructor Summary | |
|---|---|
| LeadPipeInputStream()Construct a new LeadPipeInputStream. | |
| LeadPipeInputStream(int size)Construct a new LeadPipeInputStreamwith the specified buffer size. | |
| LeadPipeInputStream(java.io.PipedOutputStream src)Construct a new LeadPipeInputStreamto pull
 from the specifiedPipedOutputStream. | |
| LeadPipeInputStream(java.io.PipedOutputStream src,
                    int size)Construct a new LeadPipeInputStreamto pull
 from the specifiedPipedOutputStream, using a
 circular buffer of the specified size. | |
| Method Summary | |
|---|---|
|  void | log(java.lang.String message,
    int loglevel)Log a message with the specified logging level. | 
|  int | read()Read a byte from the stream. | 
|  void | setBufferSize(int size)Set the size of the buffer. | 
|  void | setManagingComponent(ProjectComponent pc)Set a managing ProjectComponentfor
 thisLeadPipeInputStream. | 
|  void | setManagingTask(Task task)Set a managing Taskfor
 thisLeadPipeInputStream. | 
| Methods inherited from class java.io.PipedInputStream | 
|---|
| available, close, connect, read, receive | 
| Methods inherited from class java.io.InputStream | 
|---|
| mark, markSupported, read, reset, skip | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public LeadPipeInputStream()
LeadPipeInputStream.
public LeadPipeInputStream(int size)
LeadPipeInputStream
 with the specified buffer size.
size - the size of the circular buffer.
public LeadPipeInputStream(java.io.PipedOutputStream src)
                    throws java.io.IOException
LeadPipeInputStream to pull
 from the specified PipedOutputStream.
src - the PipedOutputStream source.
java.io.IOException - if unable to construct the stream.
public LeadPipeInputStream(java.io.PipedOutputStream src,
                           int size)
                    throws java.io.IOException
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.
java.io.IOException - if there is an error.| Method Detail | 
|---|
public int read()
         throws java.io.IOException
read in class java.io.PipedInputStreamjava.io.IOException - if there is an error.public void setBufferSize(int size)
size - the new buffer size.  Ignored if <= current size.public void setManagingTask(Task task)
Task for
 this LeadPipeInputStream.
task - the managing Task.public void setManagingComponent(ProjectComponent pc)
ProjectComponent for
 this LeadPipeInputStream.
pc - the managing ProjectComponent.
public void log(java.lang.String message,
                int loglevel)
message - the String message.loglevel - the int logging level.| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||