|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.phleisch.app.itsucks.io.impl.FileRetriever
public class FileRetriever
Implementation of an data retriever which can read files from the filesystem.
| Field Summary |
|---|
| Fields inherited from interface de.phleisch.app.itsucks.io.DataRetriever |
|---|
NOTIFICATION_PROGRESS |
| Constructor Summary | |
|---|---|
FileRetriever(java.io.File pFile)
|
|
| 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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FileRetriever(java.io.File pFile)
| Method Detail |
|---|
public void abort()
DataRetriever
abort in interface DataRetriever
public void connect()
throws java.io.IOException
DataRetriever
connect in interface DataRetrieverjava.io.IOException
public boolean isConnected()
throws java.io.IOException
DataRetriever
isConnected in interface DataRetrieverjava.io.IOException
public void disconnect()
throws java.io.IOException
DataRetriever
disconnect in interface DataRetrieverjava.io.IOExceptionpublic Metadata getMetadata()
DataRetriever
getMetadata in interface DataRetriever
public boolean isDataAvailable()
throws java.io.IOException
DataRetriever
isDataAvailable in interface DataRetrieverjava.io.IOExceptionpublic java.io.InputStream getDataAsInputStream()
DataRetriever
getDataAsInputStream in interface DataRetrieverpublic void setBytesToSkip(long pBytesToSkip)
DataRetriever
setBytesToSkip in interface DataRetrieverpublic long getBytesSkipped()
DataRetriever
getBytesSkipped in interface DataRetrieverpublic long getContentLenght()
DataRetriever
getContentLenght in interface DataRetriever
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||