public class FileProvider
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
FileProvider.Handle |
class |
FileProvider.Log |
| Constructor and Description |
|---|
FileProvider(java.lang.String dataDir,
int openFileLimit) |
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
void |
deleteFile(int fileId) |
FileProvider.Handle |
getFile(int fileId) |
FileProvider.Log |
getFileForLog() |
CloseableIterator<java.lang.Integer> |
getFileIterator() |
long |
getFileSize(int file) |
protected java.nio.channels.FileChannel |
openChannel(int fileId) |
void |
stop() |
public FileProvider.Handle getFile(int fileId) throws java.io.IOException
java.io.IOExceptionpublic long getFileSize(int file)
protected java.nio.channels.FileChannel openChannel(int fileId)
throws java.io.FileNotFoundException
java.io.FileNotFoundExceptionpublic FileProvider.Log getFileForLog() throws java.io.IOException
java.io.IOExceptionpublic CloseableIterator<java.lang.Integer> getFileIterator()
public void clear()
throws java.io.IOException
java.io.IOExceptionpublic void deleteFile(int fileId)
public void stop()