test_class.declarator: testdataDirectory = "ltm"
test_class.modifier: private final static
test_class.original_string: private final static String testdataDirectory = "ltm";
test_class.type: String
test_class.var_name: testdataDirectory
test_class.file: ontopia-engine/src/test/java/net/ontopia/topicmaps/utils/ltm/LTMTopicMapReaderTest.java
test_class.identifier: LTMTopicMapReaderTest
test_case.body: @Test
    public void testReadFromReader() throws IOException {
      File in = TestFileUtils.getTransferredTestInputFile(testdataDirectory, "extra", "tmreify.ltm");
      TopicMapIF tm = new LTMTopicMapReader(new FileReader(in), new URILocator(in)).read();
      Assert.assertNotNull(tm);
      Assert.assertEquals(2, tm.getTopics().size());
    }
test_case.class_method_signature: LTMTopicMapReaderTest.testReadFromReader()
test_case.full_signature: @Test public void testReadFromReader()
test_case.identifier: testReadFromReader
test_case.invocations: getTransferredTestInputFile read assertNotNull assertEquals size getTopics
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testReadFromReader()
focal_class.file: ontopia-engine/src/main/java/net/ontopia/topicmaps/utils/ltm/LTMTopicMapReader.java
focal_class.identifier: LTMTopicMapReader
focal_class.class_method_signature: LTMTopicMapReader.LTMTopicMapReader(URL url)
focal_class.full_signature: public  LTMTopicMapReader(URL url)
focal_class.identifier: LTMTopicMapReader
focal_class.modifiers: public
focal_class.parameters: (URL url)
focal_class.signature:  LTMTopicMapReader(URL url)
focal_class.class_method_signature: LTMTopicMapReader.LTMTopicMapReader(URL url, LocatorIF base_address)
focal_class.full_signature: public  LTMTopicMapReader(URL url, LocatorIF base_address)
focal_class.identifier: LTMTopicMapReader
focal_class.modifiers: public
focal_class.parameters: (URL url, LocatorIF base_address)
focal_class.signature:  LTMTopicMapReader(URL url, LocatorIF base_address)
focal_class.class_method_signature: LTMTopicMapReader.LTMTopicMapReader(Reader reader, LocatorIF base_address)
focal_class.full_signature: public  LTMTopicMapReader(Reader reader, LocatorIF base_address)
focal_class.identifier: LTMTopicMapReader
focal_class.modifiers: public
focal_class.parameters: (Reader reader, LocatorIF base_address)
focal_class.signature:  LTMTopicMapReader(Reader reader, LocatorIF base_address)
focal_class.class_method_signature: LTMTopicMapReader.LTMTopicMapReader(InputStream stream, LocatorIF base_address)
focal_class.full_signature: public  LTMTopicMapReader(InputStream stream, LocatorIF base_address)
focal_class.identifier: LTMTopicMapReader
focal_class.modifiers: public
focal_class.parameters: (InputStream stream, LocatorIF base_address)
focal_class.signature:  LTMTopicMapReader(InputStream stream, LocatorIF base_address)
focal_class.class_method_signature: LTMTopicMapReader.LTMTopicMapReader(File file)
focal_class.full_signature: public  LTMTopicMapReader(File file)
focal_class.identifier: LTMTopicMapReader
focal_class.modifiers: public
focal_class.parameters: (File file)
focal_class.signature:  LTMTopicMapReader(File file)
focal_class.class_method_signature: LTMTopicMapReader.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 net.ontopia.topicmaps.impl.utils.AbstractTopicMapStore) &&
          store.getBaseAddress() == null)
        ((net.ontopia.topicmaps.impl.utils.AbstractTopicMapStore)store)
            .setBaseAddress(getBaseAddress());
  
      try (Reader reader = makeReader((String) null, new LTMEncodingSniffer())) {
         // Parse!
        LTMLexer lexer = new LTMLexer(reader);
        LTMParser parser = new LTMParser(lexer);
        parser.setBase(getBaseAddress());
        parser.setTopicMap(topicmap);
        parser.init();
        parser.topicmap();
        reader.close();
      } catch (AntlrWrapException ex) {
        throw (IOException) ex.getException();
      } catch (RecognitionException ex) {
        throw new IOException("Lexical error at " + getBaseAddress().getAddress()
            + ":" + ex.line + ":" + ex.column + ": "+ ex.getMessage());
      } catch (TokenStreamRecognitionException e) {
        RecognitionException ex = e.recog;
        throw new IOException("Lexical error at " + getBaseAddress().getAddress()
            + ":" + ex.line + ":" + ex.column + ": "+ ex.getMessage());
      } catch (TokenStreamIOException ex) {
        throw ex.io;
      } catch (TokenStreamException ex) {
        throw new IOException("Lexical error: " + ex.getMessage());
      } catch (java.io.CharConversionException e) {
        throw new IOException("Problem decoding character encoding."
            + "Did you declare the right encoding?");
      }
  
      // Process class-instance associations
      ClassInstanceUtils.resolveAssociations1(topicmap);
  
      return topicmap;
    }
focal_method.class_method_signature: LTMTopicMapReader.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 setBase getBaseAddress setTopicMap init topicmap close getException getAddress getBaseAddress getMessage getAddress getBaseAddress getMessage getMessage resolveAssociations1
focal_method.modifiers: @Override protected
focal_method.parameters: (TopicMapStoreFactoryIF store_factory)
focal_method.return: TopicMapIF
focal_method.signature: TopicMapIF read(TopicMapStoreFactoryIF store_factory)