|
|||||||||||
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.BytesToTempFile
This activity takes an stream of byte arrays and writes them to a temporary file on the server. A reference to this file is written to the output.
This activity is useful when writing BLOBs to relational databases. The output of this activity can be passed to one of the parameterized inputs of the SQLUpdateStatement activity in order to write BLOBS to a database.
The activity has a one input. This input passed blocks of type
byte[]
. The bytes in the input blocks will be written to the
temporary file in the order in which they are received.
The activity has one output to which the java.io.File
object
that refers to the temporary file.
Field Summary | |
private static java.lang.String |
COPYRIGHT_NOTICE
Copyright statement |
Fields inherited from class uk.org.ogsadai.client.toolkit.activity.Activity |
|
Fields inherited from class uk.org.ogsadai.client.toolkit.activity.RequestComponent |
|
Constructor Summary | |
BytesToTempFile(ActivityOutput input)
Constructs the activity. |
Method Summary | |
protected java.lang.String |
generateXML()
Generates the XML representing the activity. |
ActivityOutput |
getOutput()
Gets the activity's only output. |
void |
setInput(ActivityOutput input)
Sets the input of this activity to be the output from another activity that will provide the data to be aggregated. |
Methods inherited from class uk.org.ogsadai.client.toolkit.activity.Activity |
addInput, addOutput, addOutputs, getDataResourceID, getInputParameters, getOutputParameters, getOutputs, replaceSpecialCharacters, setDataResourceID, setInput |
Methods inherited from class uk.org.ogsadai.client.toolkit.activity.RequestComponent |
getDataService, getName, getSession, setDataService, setSession |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final java.lang.String COPYRIGHT_NOTICE
Constructor Detail |
public BytesToTempFile(ActivityOutput input)
input
- Output from another activity that will provide input to this
activity.
java.lang.IllegalArgumentException
- If argument is null
.Method Detail |
public ActivityOutput getOutput()
public final void setInput(ActivityOutput input)
input
- Output from another activity.
java.lang.IllegalArgumentException
- If the argument is null
.protected java.lang.String generateXML()
RequestComponent
generateXML
in class Activity
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |