public class InputSourceStream extends java.lang.Object implements PullSourceStream
Modifier and Type | Field and Description |
---|---|
protected boolean |
eosReached |
protected java.io.InputStream |
stream |
LENGTH_UNKNOWN
Constructor and Description |
---|
InputSourceStream(java.io.InputStream s,
ContentDescriptor type) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
boolean |
endOfStream() |
ContentDescriptor |
getContentDescriptor() |
long |
getContentLength() |
java.lang.Object |
getControl(java.lang.String controlName) |
java.lang.Object[] |
getControls() |
int |
read(byte[] buffer,
int offset,
int length) |
boolean |
willReadBlock() |
public InputSourceStream(java.io.InputStream s, ContentDescriptor type)
public ContentDescriptor getContentDescriptor()
getContentDescriptor
in interface SourceStream
public long getContentLength()
getContentLength
in interface SourceStream
public boolean willReadBlock()
willReadBlock
in interface PullSourceStream
public int read(byte[] buffer, int offset, int length) throws java.io.IOException
read
in interface PullSourceStream
java.io.IOException
public void close() throws java.io.IOException
java.io.IOException
public boolean endOfStream()
endOfStream
in interface SourceStream
public java.lang.Object[] getControls()
getControls
in interface Controls
public java.lang.Object getControl(java.lang.String controlName)
getControl
in interface Controls