public class FileProvider extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
FileProvider.Handle |
class |
FileProvider.Log |
| Constructor and Description |
|---|
FileProvider(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<Integer> |
getFileIterator() |
long |
getFileSize(int file) |
protected FileChannel |
openChannel(int fileId) |
void |
stop() |
public FileProvider(String dataDir, int openFileLimit)
public FileProvider.Handle getFile(int fileId) throws IOException
IOExceptionpublic long getFileSize(int file)
protected FileChannel openChannel(int fileId) throws FileNotFoundException
FileNotFoundExceptionpublic FileProvider.Log getFileForLog() throws IOException
IOExceptionpublic CloseableIterator<Integer> getFileIterator()
public void clear()
throws IOException
IOExceptionpublic void deleteFile(int fileId)
public void stop()
Copyright © 2020 JBoss, a division of Red Hat. All rights reserved.