Class FileDataRecord

    • Constructor Detail

      • FileDataRecord

        public FileDataRecord​(AbstractDataStore store,
                              DataIdentifier identifier,
                              java.io.File file)
        Creates a data record based on the given identifier and file.
        Parameters:
        identifier - data identifier
        file - file that contains the binary stream
    • Method Detail

      • getLength

        public long getLength()
        Returns the length of the binary stream in this record.
        Returns:
        length of the binary stream
      • getStream

        public java.io.InputStream getStream()
                                      throws DataStoreException
        Returns the the binary stream in this record.
        Returns:
        binary stream
        Throws:
        DataStoreException - if the record could not be accessed
      • getLastModified

        public long getLastModified()
        Returns the last modified of the record.
        Returns:
        last modified time of the binary stream