|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.lucene.index.CompoundFileWriter
public final class CompoundFileWriter
Combines multiple files into a single compound file.
The file format:
Constructor Summary | |
---|---|
CompoundFileWriter(Directory dir,
String name)
Create the compound stream in the specified file. |
Method Summary | |
---|---|
void |
addFile(String file)
Add a source stream. |
void |
addFile(String file,
Directory dir)
Same as addFile(String) , only for files that are found in an
external Directory . |
void |
close()
Merge files with the extensions added up to now. |
Directory |
getDirectory()
Returns the directory of the compound file. |
String |
getName()
Returns the name of the compound file. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CompoundFileWriter(Directory dir, String name)
NullPointerException
- if dir
or name
is nullMethod Detail |
---|
public Directory getDirectory()
public String getName()
public void addFile(String file)
file
is the string by which the
sub-stream will be known in the compound stream.
IllegalStateException
- if this writer is closed
NullPointerException
- if file
is null
IllegalArgumentException
- if a file with the same name
has been added alreadypublic void addFile(String file, Directory dir)
addFile(String)
, only for files that are found in an
external Directory
.
public void close() throws IOException
IllegalStateException
- if close() had been called before or
if no file has been added to this object
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |