|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.lucene.store.Directory | +--com.lucene.store.RAMDirectory
Constructor Summary | |
RAMDirectory()
|
Method Summary | |
void |
close()
Closes the store to future operations. |
OutputStream |
createFile(String name)
Creates a new, empty file in the directory with the given name. |
void |
deleteFile(String name)
Removes an existing file in the directory. |
boolean |
fileExists(String name)
Returns true iff the named file exists in this directory. |
long |
fileLength(String name)
Returns the length in bytes of a file in the directory. |
long |
fileModified(String name)
Returns the time the named file was last modified. |
String[] |
list()
Returns an array of strings, one for each file in the directory. |
InputStream |
openFile(String name)
Returns a stream reading an existing file. |
void |
renameFile(String from,
String to)
Removes an existing file in the directory. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public RAMDirectory()
Method Detail |
public final String[] list()
list
in class Directory
public final boolean fileExists(String name)
fileExists
in class Directory
public final long fileModified(String name) throws IOException
fileModified
in class Directory
public final long fileLength(String name)
fileLength
in class Directory
public final void deleteFile(String name)
deleteFile
in class Directory
public final void renameFile(String from, String to)
renameFile
in class Directory
public final OutputStream createFile(String name)
createFile
in class Directory
public final InputStream openFile(String name)
openFile
in class Directory
public final void close()
close
in class Directory
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |