Package org.apache.tools.ant
Class DemuxInputStream
java.lang.Object
java.io.InputStream
org.apache.tools.ant.DemuxInputStream
- All Implemented Interfaces:
Closeable,AutoCloseable
Passes input requests to the project object for demultiplexing into
individual tasks and threads.
- Since:
- Ant 1.6
-
Constructor Summary
ConstructorsConstructorDescriptionDemuxInputStream(Project project) Create a DemuxInputStream for the given project -
Method Summary
Methods inherited from class java.io.InputStream
available, close, mark, markSupported, nullInputStream, read, readAllBytes, readNBytes, readNBytes, reset, skip, skipNBytes, transferTo
-
Constructor Details
-
DemuxInputStream
Create a DemuxInputStream for the given project- Parameters:
project- the project instance
-
-
Method Details
-
read
Read a byte from the project's demultiplexed input.- Specified by:
readin classInputStream- Returns:
- the next byte
- Throws:
IOException- on error
-
read
Read bytes from the project's demultiplexed input.- Overrides:
readin classInputStream- Parameters:
buffer- an array of bytes to read intooffset- the offset in the array of byteslength- the number of bytes in the array- Returns:
- the number of bytes read
- Throws:
IOException- on error
-