Save This Page
Home » lucene-2.3.2-src » org.apache » lucene » index » [javadoc | source]
org.apache.lucene.index
public class: TestCompoundFile [javadoc | source]
java.lang.Object
   junit.framework.TestCase
      org.apache.lucene.index.TestCompoundFile
Method from org.apache.lucene.index.TestCompoundFile Summary:
isCSInputStream,   isCSInputStreamOpen,   main,   setUp,   testClonedStreamsClosing,   testFileNotFound,   testRandomAccess,   testRandomAccessClones,   testRandomFiles,   testReadAfterClose,   testReadPastEOF,   testSingleFile,   testTwoFiles
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.lucene.index.TestCompoundFile Detail:
 static boolean isCSInputStream(InputStream is) 
 static boolean isCSInputStreamOpen(InputStream is) throws IOException 
 public static  void main(String[] args) 
    Main for running test case by itself.
 public  void setUp() throws IOException 
 public  void testClonedStreamsClosing() throws IOException 
 public  void testFileNotFound() throws IOException 
 public  void testRandomAccess() throws IOException 
    This test opens two files from a compound stream and verifies that their file positions are independent of each other.
 public  void testRandomAccessClones() throws IOException 
    This test opens two files from a compound stream and verifies that their file positions are independent of each other.
 public  void testRandomFiles() throws IOException 
    This test creates a compound file based on a large number of files of various length. The file content is generated randomly. The sizes range from 0 to 1Mb. Some of the sizes are selected to test the buffering logic in the file reading code. For this the chunk variable is set to the length of the buffer used internally by the compound file logic.
 public  void testReadAfterClose() throws IOException 
 public  void testReadPastEOF() throws IOException 
 public  void testSingleFile() throws IOException 
    This test creates compound file based on a single file. Files of different sizes are tested: 0, 1, 10, 100 bytes.
 public  void testTwoFiles() throws IOException 
    This test creates compound file based on two files.