Class BagBitstream


  • public class BagBitstream
    extends Object
    Hold information about a Bitstream and its metadata.
    Since:
    2020-03-12
    Author:
    mikejritter
    • Constructor Detail

      • BagBitstream

        public BagBitstream​(String fetchUrl,
                            org.dspace.content.Bitstream bitstream,
                            String bundle,
                            Policies policies,
                            Metadata metadata)
        A Bitstream which is to be fetched rather than added to a BagIt bag
        Parameters:
        fetchUrl - the url to fetch the Bitstream from
        bitstream - the Bitstream being packaged
        bundle - the name of the Bundle the Bitstream belongs to
        policies - the Policies metadata associated with the Bitstream
        metadata - the metadata associated with the Bitstream
      • BagBitstream

        public BagBitstream​(org.dspace.content.Bitstream bitstream,
                            String bundle,
                            Policies policies,
                            Metadata metadata)
        Information for a Bitstream which is to be packaged directly in a BagIt bag
        Parameters:
        bitstream - the Bitstream being packaged
        bundle - the name of the Bundle the Bitstream belongs to
        policies - the Policy metadata associated with the Bitstream
        metadata - the metadata associated with the Bitstream
    • Method Detail

      • getFetchUrl

        public String getFetchUrl()
        Get the url to fetch the Bitstream with, or null if it does not exist
        Returns:
        the fetchUrl
      • getBitstream

        public org.dspace.content.Bitstream getBitstream()
        Get the Bitstream, or null if it does not exist
        Returns:
        the bitstream
      • getPolicies

        public Policies getPolicies()
        Get the policy for a Bitstream
        Returns:
        the Policy
      • getMetadata

        public Metadata getMetadata()
        Get the metadata associated with the Bitstream
        Returns:
        the Metadata
      • getBundle

        public String getBundle()
        Get the name of the Bundle associated with the Bitstream
        Returns:
        the name of the bundle