eu.planets_project.services.datatypes
Interface DigitalObjectContent
public interface DigitalObjectContent
Representation of digital object content.
getInputStream
java.io.InputStream getInputStream()
- Returns:
- An input stream for this content; this is either created for the
actual value (if this is value content) or a stream for reading
the reference (if this is a reference content)
getReference
java.net.URI getReference()
- Returns:
- The reference for this content
getChecksum
Checksum getChecksum()
- Returns:
- The checksum for this content
withChecksum
DigitalObjectContent withChecksum(Checksum checksum)
- As checksum calculation is optional, this functionality is supported via
this method, not the factory methods. To maintain immutability, this
method does not alter this content, but returns a copy with the given
checksum set.
- Parameters:
checksum
- the checksum to set
- Returns:
- A copy of this content, with the given Checksum set
- See Also:
getChecksum()
length
long length()
- Returns:
- The content length
Copyright © 2007-2010 The Planets Consortium. All Rights Reserved.