Apache Solr open-source search software
LUCENE-3073: make CompoundFileWriter public
Robert Muire93254e8293e
diff --git a/lucene/src/java/org/apache/lucene/index/CompoundFileWriter.java b/lucene/src/java/org/apache/lucene/index/CompoundFileWriter.javaindex 9faf12dc992..a077a8f2716 100644--- a/lucene/src/java/org/apache/lucene/index/CompoundFileWriter.java+++ b/lucene/src/java/org/apache/lucene/index/CompoundFileWriter.java@@ -46,8 +46,10 @@ import org.apache.lucene.util.IOUtils;* file. The {directory} that follows has that many entries. Each directory entry* contains a long pointer to the start of this file's data section, and a String* with that file's name.+ *+ * @lucene.internal*/-final class CompoundFileWriter {+public final class CompoundFileWriter {private static final class FileEntry {/** source file */@@ -136,8 +138,7 @@ final class CompoundFileWriter {/** Merge files with the extensions added up to now.* All files with these extensions are combined sequentially into the- * compound stream. After successful merge, the source files- * are deleted.+ * compound stream.* @throws IllegalStateException if close() had been called before or* if no file has been added to this object*/