LUCENE-869: Changed FSIndexInput and FSIndexOutput to inner classes of FSDirectory to enable extensibility of these classes.

git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@532259 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael Busch 2007-04-25 08:46:14 +00:00
parent a181157bfd
commit d7ea0e5b19
3 changed files with 111 additions and 108 deletions

View File

@ -46,6 +46,9 @@ API Changes
combination when caching is desired.
(Chris Hostetter, Otis Gospodnetic)
8. LUCENE-869: Changed FSIndexInput and FSIndexOutput to inner classes of FSDirectory
to enable extensibility of these classes.
Bug fixes
1. LUCENE-804: Fixed build.xml to pack a fully compilable src dist. (Doron Cohen)

View File

@ -487,10 +487,8 @@ public class FSDirectory extends Directory {
public String toString() {
return this.getClass().getName() + "@" + directory;
}
}
class FSIndexInput extends BufferedIndexInput {
protected static class FSIndexInput extends BufferedIndexInput {
private static class Descriptor extends RandomAccessFile {
// remember if the file is open, so that we don't try to close it
@ -574,8 +572,7 @@ class FSIndexInput extends BufferedIndexInput {
}
}
class FSIndexOutput extends BufferedIndexOutput {
protected static class FSIndexOutput extends BufferedIndexOutput {
RandomAccessFile file = null;
// remember if the file is open, so that we don't try to close it
@ -610,3 +607,4 @@ class FSIndexOutput extends BufferedIndexOutput {
}
}
}

View File

@ -2,6 +2,8 @@ package org.apache.lucene.store;
import java.io.IOException;
import org.apache.lucene.store.FSDirectory.FSIndexInput;
/** This class provides access to package-level features defined in the
* store package. It is used for testing only.
*/