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 SourceStreampublic long getContentLength()
getContentLength in interface SourceStreampublic boolean willReadBlock()
willReadBlock in interface PullSourceStreampublic int read(byte[] buffer,
int offset,
int length)
throws java.io.IOException
read in interface PullSourceStreamjava.io.IOExceptionpublic void close()
throws java.io.IOException
java.io.IOExceptionpublic boolean endOfStream()
endOfStream in interface SourceStreampublic java.lang.Object[] getControls()
getControls in interface Controlspublic java.lang.Object getControl(java.lang.String controlName)
getControl in interface Controls