test_class.declarator: factory = null
test_class.modifier: private
test_class.original_string: private RandomAccessFileInputStreamFactory factory = null;
test_class.type: RandomAccessFileInputStreamFactory
test_class.var_name: factory
test_class.declarator: testData = null
test_class.modifier: private
test_class.original_string: private byte[] testData = null;
test_class.type: byte[]
test_class.var_name: testData
test_class.declarator: tempFile = null
test_class.modifier: private
test_class.original_string: private File tempFile = null;
test_class.type: File
test_class.var_name: tempFile
test_class.file: feya/libraries/archive_diff/diff.shared/src/test/java/com/google/archivepatcher/shared/RandomAccessFileInputStreamFactoryTest.java
test_class.identifier: RandomAccessFileInputStreamFactoryTest
test_case.body: @Test
    public void testNewStream_MakesIdenticalStreams() throws IOException {
      RandomAccessFileInputStream rafis1 = factory.newStream();
      RandomAccessFileInputStream rafis2 = factory.newStream();
      try {
        Assert.assertNotSame(rafis1, rafis2);
        for (int x = 0; x < testData.length; x++) {
          Assert.assertEquals(x, rafis1.read());
          Assert.assertEquals(x, rafis2.read());
        }
        Assert.assertEquals(-1, rafis1.read());
        Assert.assertEquals(-1, rafis2.read());
      } finally {
        try {
          rafis1.close();
        } catch (Exception ignored) {
          // Nothing
        }
        try {
          rafis2.close();
        } catch (Exception ignored) {
          // Nothing
        }
      }
    }
test_case.class_method_signature: RandomAccessFileInputStreamFactoryTest.testNewStream_MakesIdenticalStreams()
test_case.full_signature: @Test public void testNewStream_MakesIdenticalStreams()
test_case.identifier: testNewStream_MakesIdenticalStreams
test_case.invocations: newStream newStream assertNotSame assertEquals read assertEquals read assertEquals read assertEquals read close close
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testNewStream_MakesIdenticalStreams()
focal_class.declarator: file
focal_class.modifier: private final
focal_class.original_string: private final File file;
focal_class.type: File
focal_class.var_name: file
focal_class.declarator: rangeOffset
focal_class.modifier: private final
focal_class.original_string: private final long rangeOffset;
focal_class.type: long
focal_class.var_name: rangeOffset
focal_class.declarator: rangeLength
focal_class.modifier: private final
focal_class.original_string: private final long rangeLength;
focal_class.type: long
focal_class.var_name: rangeLength
focal_class.file: feya/libraries/archive_diff/diff.shared/src/main/java/com/google/archivepatcher/shared/RandomAccessFileInputStreamFactory.java
focal_class.identifier: RandomAccessFileInputStreamFactory
focal_class.interfaces: implements MultiViewInputStreamFactory<RandomAccessFileInputStream>
focal_class.class_method_signature: RandomAccessFileInputStreamFactory.RandomAccessFileInputStreamFactory(File file, long rangeOffset, long rangeLength)
focal_class.full_signature: public  RandomAccessFileInputStreamFactory(File file, long rangeOffset, long rangeLength)
focal_class.identifier: RandomAccessFileInputStreamFactory
focal_class.modifiers: public
focal_class.parameters: (File file, long rangeOffset, long rangeLength)
focal_class.signature:  RandomAccessFileInputStreamFactory(File file, long rangeOffset, long rangeLength)
focal_class.class_method_signature: RandomAccessFileInputStreamFactory.newStream()
focal_class.full_signature: @Override public RandomAccessFileInputStream newStream()
focal_class.identifier: newStream
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: RandomAccessFileInputStream
focal_class.signature: RandomAccessFileInputStream newStream()
focal_method.body: @Override
    public RandomAccessFileInputStream newStream() throws IOException {
      return new RandomAccessFileInputStream(file, rangeOffset, rangeLength);
    }
focal_method.class_method_signature: RandomAccessFileInputStreamFactory.newStream()
focal_method.full_signature: @Override public RandomAccessFileInputStream newStream()
focal_method.identifier: newStream
focal_method.modifiers: @Override public
focal_method.parameters: ()
focal_method.return: RandomAccessFileInputStream
focal_method.signature: RandomAccessFileInputStream newStream()