Top Description Fields Constructors Methods
org.apache.tools.ant

public Class DemuxInputStream

extends InputStream
Class Inheritance
Imports
java.io.IOException, .InputStream

Passes input requests to the project object for demultiplexing into individual tasks and threads.
Since
Ant 1.6

Field Summary

Modifier and TypeField and Description
private static final int
private Project
project

The project to from which to get input.

Constructor Summary

AccessConstructor and Description
public
DemuxInputStream(Project
the project instance
project
)

Create a DemuxInputStream for the given project

Method Summary

Modifier and TypeMethod and Description
public int

Returns:

the next byte
read
()

Implements abstract java.io.InputStream.read.

Read a byte from the project's demultiplexed input.
public int

Returns:

the number of bytes read
read
(byte[]
an array of bytes to read into
buffer
,
int
the offset in the array of bytes
offset
,
int
the number of bytes in the array
length
)

Overrides java.io.InputStream.read.

Read bytes from the project's demultiplexed input.
Inherited from java.io.InputStream:
availableclosemarkmarkSupportednullInputStreamreadreadAllBytesreadNBytesreadNBytesresetskipskipNBytestransferTo

Field Detail

MASK_8BITback to summary
private static final int MASK_8BIT
projectback to summary
private Project project

The project to from which to get input.

Constructor Detail

DemuxInputStreamback to summary
public DemuxInputStream(Project project)

Create a DemuxInputStream for the given project

Parameters
project:Project

the project instance

Method Detail

readback to summary
public int read() throws IOException

Implements abstract java.io.InputStream.read.

Read a byte from the project's demultiplexed input.

Returns:int

the next byte

Annotations
@Override
Exceptions
IOException:
on error
readback to summary
public int read(byte[] buffer, int offset, int length) throws IOException

Overrides java.io.InputStream.read.

Read bytes from the project's demultiplexed input.

Parameters
buffer:byte[]

an array of bytes to read into

offset:int

the offset in the array of bytes

length:int

the number of bytes in the array

Returns:int

the number of bytes read

Annotations
@Override
Exceptions
IOException:
on error