public class CatalogImpl extends AbstractMediaPackageElement implements Catalog
| Modifier and Type | Class and Description |
|---|---|
static class |
CatalogImpl.Adapter |
MediaPackageElement.Typechecksum, description, elementType, flavor, id, mediaPackage, mimeType, reference, size, tags, uri| Modifier | Constructor and Description |
|---|---|
protected |
CatalogImpl()
Needed by JAXB
|
protected |
CatalogImpl(MediaPackageElementFlavor flavor,
URI uri,
long size,
Checksum checksum,
MimeType mimeType)
Creates an abstract metadata container.
|
protected |
CatalogImpl(String id,
MediaPackageElementFlavor flavor,
URI uri,
long size,
Checksum checksum,
MimeType mimeType)
Creates an abstract metadata container.
|
| Modifier and Type | Method and Description |
|---|---|
static Catalog |
fromFile(File catalog)
Reads the metadata from the specified file and returns it encapsulated in a
Catalog object. |
static Catalog |
fromURI(URI uri)
Reads the metadata from the specified file and returns it encapsulated in a
Catalog object. |
static Catalog |
newInstance() |
addTag, clearReference, clearTags, clone, compareTo, containsTag, containsTag, equals, getChecksum, getElementDescription, getElementType, getFlavor, getIdentifier, getMediaPackage, getMimeType, getReference, getSize, getTags, getURI, hashCode, referTo, referTo, referTo, removeTag, setChecksum, setElementDescription, setFlavor, setIdentifier, setMimeType, setReference, setSize, setURI, toManifest, toString, verifyfinalize, getClass, notify, notifyAll, wait, wait, waitaddTag, clearReference, clearTags, clone, containsTag, containsTag, getChecksum, getElementDescription, getElementType, getFlavor, getIdentifier, getMediaPackage, getMimeType, getReference, getSize, getTags, getURI, referTo, referTo, referTo, removeTag, setChecksum, setElementDescription, setFlavor, setIdentifier, setMimeType, setReference, setSize, setURI, verifytoManifestcompareToprotected CatalogImpl()
protected CatalogImpl(String id, MediaPackageElementFlavor flavor, URI uri, long size, Checksum checksum, MimeType mimeType)
id - the element identifier withing the packageflavor - the catalog flavoruri - the document locationsize - the catalog size in byteschecksum - the catalog checksummimeType - the catalog mime typeprotected CatalogImpl(MediaPackageElementFlavor flavor, URI uri, long size, Checksum checksum, MimeType mimeType)
flavor - the catalog flavoruri - the document locationsize - the catalog size in byteschecksum - the catalog checksummimeType - the catalog mime typepublic static Catalog fromFile(File catalog)
Catalog object.catalog - the dublin core metadata container filepublic static Catalog fromURI(URI uri)
Catalog object.uri - the dublin core metadata container filepublic static Catalog newInstance()
Copyright © 2009–2020 Opencast Project. All rights reserved.