Class BinaryImpl

java.lang.Object
org.fcrepo.kernel.impl.models.FedoraResourceImpl
org.fcrepo.kernel.impl.models.BinaryImpl
All Implemented Interfaces:
org.fcrepo.kernel.api.models.Binary, org.fcrepo.kernel.api.models.FedoraResource

public class BinaryImpl extends FedoraResourceImpl implements org.fcrepo.kernel.api.models.Binary
Implementation of a Non-RDF resource.
Author:
bbpennel
  • Constructor Details

    • BinaryImpl

      public BinaryImpl(org.fcrepo.kernel.api.identifiers.FedoraId fedoraID, org.fcrepo.kernel.api.Transaction transaction, org.fcrepo.persistence.api.PersistentStorageSessionManager pSessionManager, org.fcrepo.kernel.api.models.ResourceFactory resourceFactory, org.fcrepo.kernel.api.cache.UserTypesCache userTypesCache)
      Construct the binary
      Parameters:
      fedoraID - fedora identifier
      transaction - transaction
      pSessionManager - session manager
      resourceFactory - resource factory
      userTypesCache - the user types cache
  • Method Details

    • getContent

      Specified by:
      getContent in interface org.fcrepo.kernel.api.models.Binary
    • getRange

      public InputStream getRange(long start, long end)
      Specified by:
      getRange in interface org.fcrepo.kernel.api.models.Binary
    • getContentSize

      public long getContentSize()
      Specified by:
      getContentSize in interface org.fcrepo.kernel.api.models.Binary
    • getContentDigests

      Specified by:
      getContentDigests in interface org.fcrepo.kernel.api.models.Binary
    • isProxy

      public Boolean isProxy()
      Specified by:
      isProxy in interface org.fcrepo.kernel.api.models.Binary
    • isRedirect

      public Boolean isRedirect()
      Specified by:
      isRedirect in interface org.fcrepo.kernel.api.models.Binary
    • getExternalURL

      Specified by:
      getExternalURL in interface org.fcrepo.kernel.api.models.Binary
    • getMimeType

      public String getMimeType()
      Specified by:
      getMimeType in interface org.fcrepo.kernel.api.models.Binary
    • getFilename

      public String getFilename()
      Specified by:
      getFilename in interface org.fcrepo.kernel.api.models.Binary
    • getDescription

      public org.fcrepo.kernel.api.models.FedoraResource getDescription()
      Specified by:
      getDescription in interface org.fcrepo.kernel.api.models.FedoraResource
      Overrides:
      getDescription in class FedoraResourceImpl
    • setExternalHandling

      protected void setExternalHandling(String externalHandling)
      Parameters:
      externalHandling - the externalHandling to set
    • setExternalUrl

      protected void setExternalUrl(String externalUrl)
      Parameters:
      externalUrl - the externalUrl to set
    • setContentSize

      protected void setContentSize(Long contentSize)
      Parameters:
      contentSize - the contentSize to set
    • setFilename

      protected void setFilename(String filename)
      Parameters:
      filename - the filename to set
    • setMimeType

      protected void setMimeType(String mimeType)
      Parameters:
      mimeType - the mimeType to set
    • setDigests

      protected void setDigests(Collection<URI> digests)
      Parameters:
      digests - the digests to set
    • getSystemTypes

      public List<URI> getSystemTypes(boolean forRdf)
      Specified by:
      getSystemTypes in interface org.fcrepo.kernel.api.models.FedoraResource
      Overrides:
      getSystemTypes in class FedoraResourceImpl
    • getTriples

      public org.fcrepo.kernel.api.RdfStream getTriples()
      Specified by:
      getTriples in interface org.fcrepo.kernel.api.models.FedoraResource
      Overrides:
      getTriples in class FedoraResourceImpl