test_class.declarator: file
test_class.modifier: private final
test_class.original_string: private final File file;
test_class.type: File
test_class.var_name: file
test_class.declarator: locator
test_class.modifier: private final
test_class.original_string: private final URILocator locator;
test_class.type: URILocator
test_class.var_name: locator
test_class.file: ontopia-engine/src/test/java/net/ontopia/topicmaps/utils/jtm/JTMTopicMapReaderTest.java
test_class.identifier: JTMTopicMapReaderTest
test_case.body: @Test
    public void testReadFromFile() throws IOException {
      TopicMapIF tm = new JTMTopicMapReader(file).read();
      Assert.assertNotNull(tm);
      Assert.assertEquals(1, tm.getTopics().size());
    }
test_case.class_method_signature: JTMTopicMapReaderTest.testReadFromFile()
test_case.full_signature: @Test public void testReadFromFile()
test_case.identifier: testReadFromFile
test_case.invocations: read assertNotNull assertEquals size getTopics
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testReadFromFile()
focal_class.file: ontopia-engine/src/main/java/net/ontopia/topicmaps/utils/jtm/JTMTopicMapReader.java
focal_class.identifier: JTMTopicMapReader
focal_class.class_method_signature: JTMTopicMapReader.JTMTopicMapReader(URL url)
focal_class.full_signature: public  JTMTopicMapReader(URL url)
focal_class.identifier: JTMTopicMapReader
focal_class.modifiers: public
focal_class.parameters: (URL url)
focal_class.signature:  JTMTopicMapReader(URL url)
focal_class.class_method_signature: JTMTopicMapReader.JTMTopicMapReader(Reader reader, LocatorIF base_address)
focal_class.full_signature: public  JTMTopicMapReader(Reader reader, LocatorIF base_address)
focal_class.identifier: JTMTopicMapReader
focal_class.modifiers: public
focal_class.parameters: (Reader reader, LocatorIF base_address)
focal_class.signature:  JTMTopicMapReader(Reader reader, LocatorIF base_address)
focal_class.class_method_signature: JTMTopicMapReader.JTMTopicMapReader(InputStream stream, LocatorIF base_address)
focal_class.full_signature: public  JTMTopicMapReader(InputStream stream, LocatorIF base_address)
focal_class.identifier: JTMTopicMapReader
focal_class.modifiers: public
focal_class.parameters: (InputStream stream, LocatorIF base_address)
focal_class.signature:  JTMTopicMapReader(InputStream stream, LocatorIF base_address)
focal_class.class_method_signature: JTMTopicMapReader.JTMTopicMapReader(File file)
focal_class.full_signature: public  JTMTopicMapReader(File file)
focal_class.identifier: JTMTopicMapReader
focal_class.modifiers: public
focal_class.parameters: (File file)
focal_class.signature:  JTMTopicMapReader(File file)
focal_class.class_method_signature: JTMTopicMapReader.read(TopicMapStoreFactoryIF store_factory)
focal_class.full_signature: @Override protected TopicMapIF read(TopicMapStoreFactoryIF store_factory)
focal_class.identifier: read
focal_class.modifiers: @Override protected
focal_class.parameters: (TopicMapStoreFactoryIF store_factory)
focal_class.return: TopicMapIF
focal_class.signature: TopicMapIF read(TopicMapStoreFactoryIF store_factory)
focal_class.superclass: extends AbstractTopicMapReader
focal_method.body: @Override
    protected TopicMapIF read(TopicMapStoreFactoryIF store_factory)
        throws IOException {
      TopicMapStoreIF store = store_factory.createStore();
      TopicMapIF topicmap = store.getTopicMap();
  
      // Set base address on in-memory store
      if ((store instanceof AbstractTopicMapStore)
          && store.getBaseAddress() == null)
        ((AbstractTopicMapStore) store).setBaseAddress(getBaseAddress());
  
      try (Reader reader = makeReader((String) null, new JTMEncodingSniffer())) {
        JTMStreamingParser parser = new JTMStreamingParser(topicmap);
        parser.parse(reader);
      } catch (JTMException e) {
        throw new IOException("Could not deserialize JTM fragment: "
            + e.getMessage());
      }
  
      // Process class-instance associations
      ClassInstanceUtils.resolveAssociations2(topicmap);
  
      return topicmap;
    }
focal_method.class_method_signature: JTMTopicMapReader.read(TopicMapStoreFactoryIF store_factory)
focal_method.full_signature: @Override protected TopicMapIF read(TopicMapStoreFactoryIF store_factory)
focal_method.identifier: read
focal_method.invocations: createStore getTopicMap getBaseAddress setBaseAddress getBaseAddress makeReader parse getMessage resolveAssociations2
focal_method.modifiers: @Override protected
focal_method.parameters: (TopicMapStoreFactoryIF store_factory)
focal_method.return: TopicMapIF
focal_method.signature: TopicMapIF read(TopicMapStoreFactoryIF store_factory)