Interface CatalogReader

    • Method Detail

      • readCatalog

        void readCatalog​(Catalog catalog,
                         java.lang.String fileUrl)
                  throws java.net.MalformedURLException,
                         java.io.IOException,
                         CatalogException
        Read a catalog from a file.

        This class reads a catalog from a URL.

        Parameters:
        catalog - The catalog for which this reader is called.
        fileUrl - The URL of a document to be read.
        Throws:
        java.net.MalformedURLException - if the specified URL cannot be turned into a URL object.
        java.io.IOException - if the URL cannot be read.
        CatalogException - for any error
      • readCatalog

        void readCatalog​(Catalog catalog,
                         java.io.InputStream is)
                  throws java.io.IOException,
                         CatalogException
        Read a catalog from an input stream.

        This class reads a catalog from an input stream.

        Parameters:
        catalog - The catalog for which this reader is called.
        is - The input stream that is to be read.
        Throws:
        java.io.IOException - if the URL cannot be read.
        CatalogException - for any error