gov.nih.nci.caarray.external.v1_0.data
Class FileStreamableContents
java.lang.Object
gov.nih.nci.caarray.external.v1_0.data.FileStreamableContents
- All Implemented Interfaces:
- java.io.Serializable
public class FileStreamableContents
- extends java.lang.Object
- implements java.io.Serializable
FileStreamableContents combines a file's metadata with a RemoteInputStream for reading 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 |
FileStreamableContents
public FileStreamableContents()
isCompressed
public boolean isCompressed()
- Returns:
- whether the contents that the contentStream will expose have been compressed using the GZIP algorithm.
setCompressed
public void setCompressed(boolean compressed)
- Parameters:
compressed
- whether the contents that the contentCtream will expose 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
getContentStream
public com.healthmarketscience.rmiio.RemoteInputStream getContentStream()
- Returns:
- the RemoteInputStream via which the contents for this file can be read. The stream will contain either
the raw contents, or the contents compressed using GZIP, depending on the compressed property.
setContentStream
public void setContentStream(com.healthmarketscience.rmiio.RemoteInputStream contentStream)
- Parameters:
contentStream
- the RemoteInputStream via which the contents for this file can be read.