DemuxInputStreampublic class DemuxInputStream extends InputStream Passes input requests to the project object for demuxing into
individual tasks and threads. |
Fields Summary |
---|
private Project | projectThe project to from which to get input. |
Constructors Summary |
---|
public DemuxInputStream(Project project)Create a DemuxInputStream for the given project
this.project = project;
|
Methods Summary |
---|
public int | read()Read a byte from the project's demuxed input.
byte[] buffer = new byte[1];
if (project.demuxInput(buffer, 0, 1) == -1) {
return -1;
}
return buffer[0];
| public int | read(byte[] buffer, int offset, int length)Read bytes from the project's demuxed input.
return project.demuxInput(buffer, offset, length);
|
|