public class FileDataSource
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static interface |
FileDataSource.CacheClearListener |
Constructor and Description |
---|
FileDataSource(java.io.File sourceFile) |
Modifier and Type | Method and Description |
---|---|
void |
addCacheClearListener(FileDataSource.CacheClearListener listener) |
void |
clearCache()
Clears cache windows.
|
void |
close() |
byte |
getByte(long position) |
java.io.File |
getFile() |
long |
getFileLength() |
void |
removeCacheClearListener(FileDataSource.CacheClearListener listener) |
void |
setFileLength(long length) |
public FileDataSource(java.io.File sourceFile) throws java.io.FileNotFoundException, java.io.IOException
java.io.FileNotFoundException
java.io.IOException
public long getFileLength() throws java.io.IOException
java.io.IOException
public void setFileLength(long length) throws java.io.IOException
java.io.IOException
public java.io.File getFile()
public byte getByte(long position)
public void clearCache()
public void close()
public void addCacheClearListener(FileDataSource.CacheClearListener listener)
public void removeCacheClearListener(FileDataSource.CacheClearListener listener)