Class TMXMLReader

    • Constructor Detail

      • TMXMLReader

        public TMXMLReader​(URL url,
                           LocatorIF base_address)
      • TMXMLReader

        public TMXMLReader​(Reader reader,
                           LocatorIF base_address)
        PUBLIC: Creates a reader reading from the given Reader using the specified base address.
      • TMXMLReader

        public TMXMLReader​(InputStream stream,
                           LocatorIF base_address)
        PUBLIC: Creates a reader reading from the given InputStream using the specified base address.
      • TMXMLReader

        public TMXMLReader​(InputSource source,
                           LocatorIF base)
        PUBLIC: Creates a reader reading from the given location, using a different base address.
    • Method Detail

      • getValidate

        public boolean getValidate()
      • setValidate

        public void setValidate​(boolean validate)
      • read

        public TopicMapIF read()
                        throws IOException
        Description copied from interface: TopicMapReaderIF
        PUBLIC: Reads the next topic map available from some implicit, implementation dependent source.

        A topic map source may contain multiple topic maps. The read method returns the next topic map that is available from that source. null is returned when there are no more topic maps available. In a sense this is iterator-like behaviour.

        Specified by:
        read in interface TopicMapReaderIF
        Returns:
        The next topic map read from the source; an object implementing TopicMapIF. null is returned when there are no more topic maps available from the source.
        Throws:
        IOException - Thrown if reading the source fails.
      • importInto

        public void importInto​(TopicMapIF topicmap)
                        throws IOException
        Description copied from interface: TopicMapReaderIF
        PUBLIC: Imports an implicitly designated topic map into the given topic map.
        Specified by:
        importInto in interface TopicMapReaderIF
        Parameters:
        topicmap - The topic map into which the import will be done; an object implementing TopicMapIF.
        Throws:
        IOException
      • readAll

        public Collection readAll()
                           throws IOException
        Description copied from interface: TopicMapReaderIF
        PUBLIC: Reads all the topic map available from some implicit, implementation dependent source.

        A topic map source may contain multiple topic maps. The readAll method returns a collection contain all the topic maps available from the source.

        Specified by:
        readAll in interface TopicMapReaderIF
        Returns:
        A collection containing all the topic maps read from the source; objects implementing TopicMapIF.
        Throws:
        IOException - Thrown if reading the source fails.