edu.mssm.crover.ims.tasks.engines
Class FileContentTaskData

java.lang.Object
  |
  +--edu.mssm.crover.ims.tasks.engines.FileContentTaskData
All Implemented Interfaces:
java.io.Serializable, TaskData

public class FileContentTaskData
extends java.lang.Object
implements TaskData, java.io.Serializable

Stores the contents of a file as a byte array.

See Also:
Serialized Form

Field Summary
 byte[] data
           
 
Constructor Summary
FileContentTaskData()
           
 
Method Summary
 boolean canMerge()
          Does this instance support the merge operation?
 boolean canSplit()
          Does this instance support the split operation?
 java.io.File generateTmpFile()
           
 void importFile(java.io.File f)
           
 TaskData merge(java.util.Collection task_data)
          Returns the merging of independent task_data in one instance.
 long size()
          Returns a number proportional to the number of data represented by this instance.
 java.util.Collection split(int numpieces)
          Splits the data contained in this instance into several pieces.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

data

public byte[] data
Constructor Detail

FileContentTaskData

public FileContentTaskData()
Method Detail

size

public long size()
Description copied from interface: TaskData
Returns a number proportional to the number of data represented by this instance.

Specified by:
size in interface TaskData

generateTmpFile

public java.io.File generateTmpFile()

importFile

public void importFile(java.io.File f)

canSplit

public boolean canSplit()
Description copied from interface: TaskData
Does this instance support the split operation?

Specified by:
canSplit in interface TaskData

split

public java.util.Collection split(int numpieces)
Description copied from interface: TaskData
Splits the data contained in this instance into several pieces.

Specified by:
split in interface TaskData

canMerge

public boolean canMerge()
Description copied from interface: TaskData
Does this instance support the merge operation?

Specified by:
canMerge in interface TaskData

merge

public TaskData merge(java.util.Collection task_data)
Description copied from interface: TaskData
Returns the merging of independent task_data in one instance.

Specified by:
merge in interface TaskData


Copyright @ 2003 Mount Sinai School of Medicine. All Rights Reserved.