Package gov.nasa.pds.label.object
Class GenericObject
java.lang.Object
gov.nasa.pds.label.object.DataObject
gov.nasa.pds.label.object.GenericObject
Implements a generic interface to a data object, for objects that are not otherwise specially
handled.
-
Field Summary
Fields inherited from class gov.nasa.pds.label.object.DataObject
channel, dataObjectLocation, fileObject, localIdentifier, name, offset, parentDir -
Constructor Summary
ConstructorsConstructorDescriptionGenericObject(File parentDir, File fileObject, long offset, long size) Deprecated.GenericObject(File parentDir, File fileObject, long offset, long size, DataObjectLocation location) Creates a new instance.GenericObject(URL parentDir, File fileObject, long offset, long size) Deprecated.GenericObject(URL parentDir, File fileObject, long offset, long size, DataObjectLocation location) Creates a new instance. -
Method Summary
Methods inherited from class gov.nasa.pds.label.object.DataObject
closeChannel, getChannel, getDataFile, getDataObjectLocation, getInputStream, getLocalIdentifier, getName, getOffset, getSize, setDataObjectLocation, setLocalIdentifier, setName, setSize
-
Constructor Details
-
GenericObject
public GenericObject(File parentDir, File fileObject, long offset, long size, DataObjectLocation location) throws IOException, URISyntaxException Creates a new instance.- Parameters:
parentDir- the parent directory of the data filefileObject- the PDS4 file object for the data fileoffset- the offset within the file of the start of the data objectsize- the size of the data object, in bytes- Throws:
IOException- if an error occurred initializng the objectURISyntaxException
-
GenericObject
public GenericObject(URL parentDir, File fileObject, long offset, long size, DataObjectLocation location) throws IOException, URISyntaxException Creates a new instance.- Parameters:
parentDir- the parent directory of the data filefileObject- the PDS4 file object for the data fileoffset- the offset within the file of the start of the data objectsize- the size of the data object, in bytes- Throws:
IOException- if an error occurred initializng the objectURISyntaxException
-
GenericObject
@Deprecated public GenericObject(File parentDir, File fileObject, long offset, long size) throws IOException, URISyntaxException Deprecated.Deprecated initializer. Missing DataObjectLocation- Throws:
IOExceptionURISyntaxException
-
GenericObject
@Deprecated public GenericObject(URL parentDir, File fileObject, long offset, long size) throws IOException, URISyntaxException Deprecated.Deprecated initializer. Missing DataObjectLocation- Throws:
IOExceptionURISyntaxException
-