|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SequentialFileFactory
A SequentialFileFactory
Method Summary | |
---|---|
void |
activate(SequentialFile file)
The factory may need to do some initialization before the file is activated. |
int |
calculateBlockSize(int bytes)
|
void |
clearBuffer(java.nio.ByteBuffer buffer)
|
void |
controlBuffersLifeCycle(boolean value)
|
void |
createDirs()
Create the directory if it doesn't exist yet |
SequentialFile |
createSequentialFile(java.lang.String fileName,
int maxIO)
|
void |
deactivate(SequentialFile file)
|
int |
getAlignment()
|
boolean |
isSupportsCallbacks()
|
java.util.List<java.lang.String> |
listFiles(java.lang.String extension)
|
java.nio.ByteBuffer |
newBuffer(int size)
|
void |
releaseBuffer(java.nio.ByteBuffer buffer)
|
void |
start()
|
void |
stop()
|
java.nio.ByteBuffer |
wrapBuffer(byte[] bytes)
|
Method Detail |
---|
SequentialFile createSequentialFile(java.lang.String fileName, int maxIO)
java.util.List<java.lang.String> listFiles(java.lang.String extension) throws java.lang.Exception
java.lang.Exception
boolean isSupportsCallbacks()
java.nio.ByteBuffer newBuffer(int size)
void releaseBuffer(java.nio.ByteBuffer buffer)
void controlBuffersLifeCycle(boolean value)
void activate(SequentialFile file)
void deactivate(SequentialFile file)
java.nio.ByteBuffer wrapBuffer(byte[] bytes)
int getAlignment()
int calculateBlockSize(int bytes)
void clearBuffer(java.nio.ByteBuffer buffer)
void start()
void stop()
void createDirs() throws java.lang.Exception
java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |