test_class.file: oak-segment-tar/src/test/java/org/apache/jackrabbit/oak/segment/file/tar/index/IndexLoaderTest.java
test_class.identifier: IndexLoaderTest
test_case.body: @Test(expected = InvalidIndexException.class)
      public void testUnrecognizedMagicNumber() throws Exception {
          Buffer buffer = Buffer.allocate(Integer.SIZE);
          buffer.duplicate().putInt(0xDEADBEEF);
          try {
              loadIndex(buffer);
          } catch (InvalidIndexException e) {
              assertEquals("Unrecognized magic number", e.getMessage());
              throw e;
          }
      }
test_case.class_method_signature: IndexLoaderTest.testUnrecognizedMagicNumber()
test_case.full_signature: @Test(expected = InvalidIndexException.class) public void testUnrecognizedMagicNumber()
test_case.identifier: testUnrecognizedMagicNumber
test_case.invocations: allocate putInt duplicate loadIndex assertEquals getMessage
test_case.modifiers: @Test(expected = InvalidIndexException.class) public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testUnrecognizedMagicNumber()
focal_class.declarator: v1
focal_class.modifier: private final
focal_class.original_string: private final IndexLoaderV1 v1;
focal_class.type: IndexLoaderV1
focal_class.var_name: v1
focal_class.declarator: v2
focal_class.modifier: private final
focal_class.original_string: private final IndexLoaderV2 v2;
focal_class.type: IndexLoaderV2
focal_class.var_name: v2
focal_class.file: oak-segment-tar/src/main/java/org/apache/jackrabbit/oak/segment/file/tar/index/IndexLoader.java
focal_class.identifier: IndexLoader
focal_class.class_method_signature: IndexLoader.newIndexLoader(int blockSize)
focal_class.full_signature: public static IndexLoader newIndexLoader(int blockSize)
focal_class.identifier: newIndexLoader
focal_class.modifiers: public static
focal_class.parameters: (int blockSize)
focal_class.return: IndexLoader
focal_class.signature: IndexLoader newIndexLoader(int blockSize)
focal_class.class_method_signature: IndexLoader.IndexLoader(int blockSize)
focal_class.full_signature: private  IndexLoader(int blockSize)
focal_class.identifier: IndexLoader
focal_class.modifiers: private
focal_class.parameters: (int blockSize)
focal_class.signature:  IndexLoader(int blockSize)
focal_class.class_method_signature: IndexLoader.readMagic(ReaderAtEnd reader)
focal_class.full_signature: private static int readMagic(ReaderAtEnd reader)
focal_class.identifier: readMagic
focal_class.modifiers: private static
focal_class.parameters: (ReaderAtEnd reader)
focal_class.return: int
focal_class.signature: int readMagic(ReaderAtEnd reader)
focal_class.class_method_signature: IndexLoader.loadIndex(ReaderAtEnd reader)
focal_class.full_signature: public Index loadIndex(ReaderAtEnd reader)
focal_class.identifier: loadIndex
focal_class.modifiers: public
focal_class.parameters: (ReaderAtEnd reader)
focal_class.return: Index
focal_class.signature: Index loadIndex(ReaderAtEnd reader)
focal_method.body: public Index loadIndex(ReaderAtEnd reader) throws IOException, InvalidIndexException {
          switch (readMagic(reader)) {
              case IndexLoaderV1.MAGIC:
                  return v1.loadIndex(reader);
              case IndexLoaderV2.MAGIC:
                  return v2.loadIndex(reader);
              default:
                  throw new InvalidIndexException("Unrecognized magic number");
          }
      }
focal_method.class_method_signature: IndexLoader.loadIndex(ReaderAtEnd reader)
focal_method.full_signature: public Index loadIndex(ReaderAtEnd reader)
focal_method.identifier: loadIndex
focal_method.invocations: readMagic loadIndex loadIndex
focal_method.modifiers: public
focal_method.parameters: (ReaderAtEnd reader)
focal_method.return: Index
focal_method.signature: Index loadIndex(ReaderAtEnd reader)