|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.erowid.sperosearch.splitindex.SplitIndexDirectoryDescriptor
org.erowid.sperosearch.splitindex.WriteableSplitIndexDirectoryDescriptor
A writeable form of SplitIndexDirectoryDescriptor.
This split was done the way it was to force all file i/o, and specifically all protential
uses of the Sperowider FileUtils class into only one
class : this one.
WriteableSplitIndexFileDescriptor
are known to Sperowider.
| Field Summary |
| Fields inherited from class org.erowid.sperosearch.splitindex.SplitIndexDirectoryDescriptor |
DESCRIPTOR_FILE_NAME, DESCRIPTOR_VERSION_NUMBER |
| Constructor Summary | |
WriteableSplitIndexDirectoryDescriptor(File file)
Creates a(n) WriteableSplitIndexDirectoryDescriptor object. |
|
| Method Summary | |
void |
addFileDescriptor(SplitIndexFileDescriptor fileDescriptor)
Adds a file descriptor. |
protected Object |
clone()
|
File |
getFile()
The File of this directory, for writing. |
void |
process()
Does the splitting, zipping, deleting, and then saves the descriptor file. |
void |
saveDescriptor()
Saves this directory descriptor. |
void |
setSegmentSize(int segmentSize)
Sets the segment size, preperator to saving. |
void |
unprocess(File destination)
Mostly for testing purposes, this will take a processed directory of files and its descriptor, and generate the original data from it. |
| Methods inherited from class org.erowid.sperosearch.splitindex.SplitIndexDirectoryDescriptor |
fileExists, getFileDescriptor, getInstance, getSegmentSize, getUrl, listFiles, loadDescriptor |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public WriteableSplitIndexDirectoryDescriptor(File file)
throws IOException
| Method Detail |
protected Object clone()
throws CloneNotSupportedException
clone in class SplitIndexDirectoryDescriptorCloneNotSupportedExceptionpublic File getFile()
public void process()
throws IOException
IOException
public void unprocess(File destination)
throws IOException
SplitIndexFileInputStream objects.
IOException
public void saveDescriptor()
throws IOException,
IllegalStateException
IOException - If there's a problem writing.
IllegalStateException - If this is not writeable, or segment size is not set.public void addFileDescriptor(SplitIndexFileDescriptor fileDescriptor)
addFileDescriptor in class SplitIndexDirectoryDescriptorpublic void setSegmentSize(int segmentSize)
SplitIndexDirectoryDescriptor
setSegmentSize in class SplitIndexDirectoryDescriptor
|
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||