Package org.apache.tools.ant
Class DemuxInputStream
- java.lang.Object
- 
- java.io.InputStream
- 
- org.apache.tools.ant.DemuxInputStream
 
 
- 
- All Implemented Interfaces:
- java.io.Closeable,- java.lang.AutoCloseable
 
 public class DemuxInputStream extends java.io.InputStreamPasses input requests to the project object for demultiplexing into individual tasks and threads.- Since:
- Ant 1.6
 
- 
- 
Constructor SummaryConstructors Constructor Description DemuxInputStream(Project project)Create a DemuxInputStream for the given project
 
- 
- 
- 
Constructor Detail- 
DemuxInputStreampublic DemuxInputStream(Project project) Create a DemuxInputStream for the given project- Parameters:
- project- the project instance
 
 
- 
 - 
Method Detail- 
readpublic int read() throws java.io.IOExceptionRead a byte from the project's demultiplexed input.- Specified by:
- readin class- java.io.InputStream
- Returns:
- the next byte
- Throws:
- java.io.IOException- on error
 
 - 
readpublic int read(byte[] buffer, int offset, int length) throws java.io.IOExceptionRead bytes from the project's demultiplexed input.- Overrides:
- readin class- java.io.InputStream
- Parameters:
- buffer- an array of bytes to read into
- offset- the offset in the array of bytes
- length- the number of bytes in the array
- Returns:
- the number of bytes read
- Throws:
- java.io.IOException- on error
 
 
- 
 
-