|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--uk.org.ogsadai.client.toolkit.activity.RequestComponent
|
+--uk.org.ogsadai.client.toolkit.activity.Activity
|
+--uk.org.ogsadai.client.toolkit.activity.transform.ZIPArchive
This activity archives data from other activities producing a ZIP archive and also metadata about the compression.
It has one or more inputs and two outputs. The meta data output has a
format analogous to the following example:
<zipArchiveMetadata>
<checksum type="adler32" value="7615263"/>
</zipArchiveMetadata>
| Constructor Summary | |
ZIPArchive()
Constructs a request to ZIP archive data from another activities. |
|
| Method Summary | |
void |
addEntry(ActivityOutput input)
Sets the name of an output that will provide input to this activity. |
protected java.lang.String |
generateXML()
Generates the XML representing the activity. |
ActivityOutput |
getArchivedDataOutput()
Gets the activity's archived data output. |
java.lang.String |
getChecksumType()
Get the checksum type. |
long |
getChecksumValue()
Get the checksum value. |
ActivityOutput |
getMetaDataOutput()
Gets the activity's meta data output. |
void |
setChecksumType(ZIPChecksum checksumType)
Set the ZIP checksum type. |
void |
setComment(java.lang.String comment)
Set the ZIP archive comment. |
void |
setLevel(int level)
Set the ZIP archive level. |
| Methods inherited from class uk.org.ogsadai.client.toolkit.activity.Activity |
addInput, addOutput, addOutputs, getDataResourceID, getDataServiceStub, getInputParameters, getOutputParameters, getOutputs, replaceSpecialCharacters, setDataResourceID, setDataServiceStub, setInput |
| Methods inherited from class uk.org.ogsadai.client.toolkit.activity.RequestComponent |
getName |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ZIPArchive()
| Method Detail |
public void setChecksumType(ZIPChecksum checksumType)
checksumType -
java.lang.IllegalArgumentException - If type is null.public void setComment(java.lang.String comment)
comment - the comment associated with the zip
archive
java.lang.IllegalArgumentException - if the comment is
nullpublic void setLevel(int level)
level - the level of compression where 0 is the
minimum and 9 the maximum
java.lang.IllegalArgumentException - if level is < 0 or > 9
public long getChecksumValue()
throws ActivityOutputException,
DataFormatException
DataFormatException - If the output data is not in the expected format.
ActivityOutputException - If there is no output data.
public java.lang.String getChecksumType()
throws ActivityOutputException,
DataFormatException
DataFormatException - If the output data is not in the expected format.
ActivityOutputException - If there is no output data.public void addEntry(ActivityOutput input)
input - input from another activity.
java.lang.IllegalArgumentException - If the argument is null.public ActivityOutput getArchivedDataOutput()
public ActivityOutput getMetaDataOutput()
protected java.lang.String generateXML()
RequestComponent
generateXML in class ActivityActivity.generateXML()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||