|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface DataRetriever
This interface specifies an DataRetriever. DataRetriever are used to provided an extended input stream for the processor chain.
| Field Summary | |
|---|---|
static java.lang.Integer |
NOTIFICATION_PROGRESS
This type of notification will be send if the progress changes. |
| Method Summary | |
|---|---|
void |
abort()
Aborts the current retrieving. |
void |
connect()
Advise the Retriever to connect to the data source. |
void |
disconnect()
Disconnect from the data source. |
long |
getBytesSkipped()
Returns the skipped bytes. |
long |
getContentLenght()
Returns the content length in bytes. |
java.io.InputStream |
getDataAsInputStream()
Returns an input stream for the retrieved data. |
Metadata |
getMetadata()
Returns the metadata of the data source connection. |
boolean |
isConnected()
Returns true if the retriever is connected. |
boolean |
isDataAvailable()
Returns true if the data source contains any data to be read. |
void |
setBytesToSkip(long pBytesToSkip)
Skip the given bytes (seek) when reading the data source. |
| Field Detail |
|---|
static final java.lang.Integer NOTIFICATION_PROGRESS
| Method Detail |
|---|
void connect()
throws java.io.IOException
java.io.IOException
boolean isConnected()
throws java.io.IOException
java.io.IOException
boolean isDataAvailable()
throws java.io.IOException
java.io.IOException
java.io.InputStream getDataAsInputStream()
throws java.io.IOException
java.io.IOException
void disconnect()
throws java.io.IOException
java.io.IOExceptionvoid abort()
Metadata getMetadata()
long getContentLenght()
throws java.io.IOException
java.io.IOExceptionvoid setBytesToSkip(long pBytesToSkip)
pBytesToSkip - long getBytesSkipped()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||