org.apache.tools.ant
Class DemuxInputStream
InputStreamorg.apache.tools.ant.DemuxInputStream
public class DemuxInputStream
extends InputStream
Passes input requests to the project object for demuxing into
individual tasks and threads.
int | read()- Read a byte from the project's demuxed input.
|
int | read(byte[] buffer, int offset, int length)- Read bytes from the project's demuxed input.
|
DemuxInputStream
public DemuxInputStream(Project project)
Create a DemuxInputStream for the given project
project - the project instance
read
public int read()
throws IOException Read a byte from the project's demuxed input.
read
public int read(byte[] buffer,
int offset,
int length)
throws IOException Read bytes from the project's demuxed input.
buffer - an array of bytes to read intooffset - the offset in the array of byteslength - the number of bytes in the array