| Package | Description |
|---|---|
| org.opencastproject.mediapackage | |
| org.opencastproject.mediapackage.attachment | |
| org.opencastproject.security.api | |
| org.opencastproject.util |
Utility classes for dealing with media packages, collections, URLs, files, and streams.
|
| Modifier and Type | Field and Description |
|---|---|
protected Checksum |
AbstractMediaPackageElement.checksum
The element's checksum
|
| Modifier and Type | Method and Description |
|---|---|
Checksum |
MediaPackageElement.getChecksum()
Returns the file's checksum.
|
Checksum |
AbstractMediaPackageElement.getChecksum() |
| Modifier and Type | Method and Description |
|---|---|
void |
MediaPackageElement.setChecksum(Checksum checksum)
Sets the new checksum on this media package element.
|
void |
AbstractMediaPackageElement.setChecksum(Checksum checksum) |
| Constructor and Description |
|---|
AbstractMediaPackageElement(MediaPackageElement.Type elementType,
MediaPackageElementFlavor flavor,
URI uri,
Long size,
Checksum checksum,
MimeType mimeType)
Creates a new media package element.
|
AbstractMediaPackageElement(String id,
MediaPackageElement.Type elementType,
MediaPackageElementFlavor flavor,
URI uri,
Long size,
Checksum checksum,
MimeType mimeType)
Creates a new media package element.
|
CatalogImpl(MediaPackageElementFlavor flavor,
URI uri,
long size,
Checksum checksum,
MimeType mimeType)
Creates an abstract metadata container.
|
CatalogImpl(String id,
MediaPackageElementFlavor flavor,
URI uri,
long size,
Checksum checksum,
MimeType mimeType)
Creates an abstract metadata container.
|
| Constructor and Description |
|---|
AttachmentImpl(MediaPackageElementFlavor flavor,
URI uri,
long size,
Checksum checksum,
MimeType mimeType)
Creates an attachment.
|
AttachmentImpl(String identifier,
MediaPackageElementFlavor flavor,
URI uri,
long size,
Checksum checksum,
MimeType mimeType)
Creates an attachment.
|
| Modifier and Type | Method and Description |
|---|---|
static Checksum |
AccessControlUtil.calculateChecksum(AccessControlList acl)
Calculate an MD5 checksum for an
AccessControlList. |
| Modifier and Type | Method and Description |
|---|---|
static Checksum |
Checksum.create(ChecksumType type,
File file)
Creates a checksum of type
type from the given file. |
static Checksum |
Checksum.create(ChecksumType type,
InputStream is)
Creates a checksum of type
type from the given input stream. |
static Checksum |
Checksum.create(ChecksumType type,
String value)
Creates a checksum of type
type and value value. |
static Checksum |
Checksum.create(String type,
String value)
Creates a checksum of type
type and value value. |
static Checksum |
Checksum.createFor(ChecksumType type,
String string)
Create a checksum of type
type for the given string. |
static Checksum |
Checksum.fromString(String checksum)
Creates a checksum from a string in the form "value (type)".
|
Copyright © 2009–2021 Opencast Project. All rights reserved.