Class GenericObject


  • public class GenericObject
    extends DataObject
    Implements a generic interface to a data object, for objects that are not otherwise specially handled.
    • Constructor Detail

      • GenericObject

        public GenericObject​(java.io.File parentDir,
                             File fileObject,
                             long offset,
                             long size,
                             DataObjectLocation location)
                      throws java.io.IOException,
                             java.net.URISyntaxException
        Creates a new instance.
        Parameters:
        parentDir - the parent directory of the data file
        fileObject - the PDS4 file object for the data file
        offset - the offset within the file of the start of the data object
        size - the size of the data object, in bytes
        Throws:
        java.io.IOException - if an error occurred initializng the object
        java.net.URISyntaxException
      • GenericObject

        public GenericObject​(java.net.URL parentDir,
                             File fileObject,
                             long offset,
                             long size,
                             DataObjectLocation location)
                      throws java.io.IOException,
                             java.net.URISyntaxException
        Creates a new instance.
        Parameters:
        parentDir - the parent directory of the data file
        fileObject - the PDS4 file object for the data file
        offset - the offset within the file of the start of the data object
        size - the size of the data object, in bytes
        Throws:
        java.io.IOException - if an error occurred initializng the object
        java.net.URISyntaxException
      • GenericObject

        @Deprecated
        public GenericObject​(java.io.File parentDir,
                             File fileObject,
                             long offset,
                             long size)
                      throws java.io.IOException,
                             java.net.URISyntaxException
        Deprecated.
        Deprecated initializer. Missing DataObjectLocation
        Throws:
        java.io.IOException
        java.net.URISyntaxException
      • GenericObject

        @Deprecated
        public GenericObject​(java.net.URL parentDir,
                             File fileObject,
                             long offset,
                             long size)
                      throws java.io.IOException,
                             java.net.URISyntaxException
        Deprecated.
        Deprecated initializer. Missing DataObjectLocation
        Throws:
        java.io.IOException
        java.net.URISyntaxException