Interface Binary

All Superinterfaces:
FedoraResource

public interface Binary extends FedoraResource
Since:
9/19/14
Author:
cabeer
  • Method Details

    • getContent

      Returns:
      The InputStream of content associated with this datastream.
    • getRange

      InputStream getRange(long start, long end)
      Parameters:
      start - start index of the range, inclusive
      end - end index of the range, inclusive
      Returns:
      The InputStream of the range of bytes of content associated with this datastream.
    • getContentSize

      Returns:
      The size in bytes of content associated with this datastream.
    • getContentDigests

      Get the pre-calculated content digest for the binary payload
      Returns:
      a URI with the format algorithm:value
    • isProxy

      Returns:
      Whether or not this binary is a proxy to another resource
    • isRedirect

      Returns:
      Whether or not this binary is a redirect to another resource
    • getExternalURL

      Returns:
      the external url for this binary if present, or null.
    • getExternalURI

      default URI getExternalURI()
      Returns:
      Get the external uri for this binary if present, or null
    • getMimeType

      Returns:
      The MimeType of content associated with this datastream.
    • getFilename

      Return the file name for the binary content
      Returns:
      original file name for the binary content, or the object's id.