public final class BinaryMetadata extends Object
For those resources that are non-RDF resources (LDP-NR), the base Resource
interface
will make a BinaryMetadata
object available. The binary content is not accessed directly
through the BinaryMetadata
class, but rather an identifier is returned, which may
be resolved by an external system.
The BinaryMetadata
class also provides access methods for the MIME Type of the resource.
Modifier and Type | Class and Description |
---|---|
static class |
BinaryMetadata.Builder
A mutable buillder for a
BinaryMetadata . |
Modifier and Type | Method and Description |
---|---|
static BinaryMetadata.Builder |
builder(IRI identifier)
Get a mutable builder for a
BinaryMetadata . |
Map<String,List<String>> |
getHints()
Retrieve any hints for persistence.
|
IRI |
getIdentifier()
Retrieve an IRI identifying the location of the binary.
|
Optional<String> |
getMimeType()
Retrieve the mime-type of the resource, if one was specified.
|
public IRI getIdentifier()
public Optional<String> getMimeType()
public Map<String,List<String>> getHints()
public static BinaryMetadata.Builder builder(IRI identifier)
BinaryMetadata
.identifier
- the identifierBinaryMetadata