| Package | Description |
|---|---|
| org.opencastproject.util |
Utility classes for dealing with media packages, collections, URLs, files, and streams.
|
| Modifier and Type | Field and Description |
|---|---|
static ChecksumType |
ChecksumType.DEFAULT_TYPE
Default type md5
|
protected ChecksumType |
Checksum.type
The checksum type
|
| Modifier and Type | Method and Description |
|---|---|
static ChecksumType |
ChecksumType.fromString(String type)
Returns a checksum type for the given string.
|
static ChecksumType |
ChecksumType.fromValue(String value)
Returns the type of the checksum gathered from the provided value.
|
ChecksumType |
Checksum.getType()
Returns the checksum type.
|
| 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.createFor(ChecksumType type,
String string)
Create a checksum of type
type for the given string. |
Copyright © 2009–2020 Opencast Project. All rights reserved.