Class CatalogImpl

All Implemented Interfaces:
Serializable, Cloneable, Comparable<MediaPackageElement>, Catalog, ManifestContributor, MediaPackageElement
Direct Known Subclasses:
XMLCatalogImpl

public class CatalogImpl extends AbstractMediaPackageElement implements Catalog
This is a basic implementation for handling simple catalogs of metadata.
See Also:
  • Constructor Details

    • CatalogImpl

      protected CatalogImpl()
      Needed by JAXB
    • CatalogImpl

      protected CatalogImpl(String id, MediaPackageElementFlavor flavor, URI uri, long size, Checksum checksum, MimeType mimeType)
      Creates an abstract metadata container.
      Parameters:
      id - the element identifier withing the package
      flavor - the catalog flavor
      uri - the document location
      size - the catalog size in bytes
      checksum - the catalog checksum
      mimeType - the catalog mime type
  • Method Details

    • fromURI

      public static Catalog fromURI(URI uri)
      Reads the metadata from the specified file and returns it encapsulated in a Catalog object.
      Parameters:
      uri - the dublin core metadata container file
      Returns:
      the dublin core object
    • newInstance

      public static Catalog newInstance()
      Returns:
      a new catalog instance