gov.nih.nci.caarray.external.v1_0.data
Class FileContents
java.lang.Object
gov.nih.nci.caarray.external.v1_0.data.FileContents
- All Implemented Interfaces:
- java.io.Serializable
public class FileContents
- extends java.lang.Object
- implements java.io.Serializable
FileContents combines a file's metadata with its contents.
- Author:
- dkokotov
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FileContents
public FileContents()
isCompressed
public boolean isCompressed()
- Returns:
- whether the contents have been compressed using the GZIP algorithm.
setCompressed
public void setCompressed(boolean compressed)
- Parameters:
compressed
- whether the contents have been compressed using the GZIP algorithm.
getMetadata
public FileMetadata getMetadata()
- Returns:
- the metadata for this file
setMetadata
public void setMetadata(FileMetadata metadata)
- Parameters:
metadata
- the metadata for this file
getContents
public byte[] getContents()
- Returns:
- the contents. These will be either the raw byte contents, or the byte contents compressed using GZIP,
depending on the compressed property.
setContents
public void setContents(byte[] contents)
- Parameters:
contents
- the byte content of this file. This should be either the raw byte contents, or the byte contents
compressed using GZIP, depending on the compressed property.