|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--uk.org.ogsadai.activity.Activity
|
+--uk.org.ogsadai.activity.files.AbstractFileActivity
|
+--uk.org.ogsadai.activity.files.FileAccessActivity
Reads a file or extracts part of a file. This file can be a text
file or a binary file.
For information on this activity see the OGSA-DAI user doc:
OGSA-DAI/doc/interaction/activities/files/fileAccessActivity.html
| Field Summary | |
private static java.lang.String |
COPYRIGHT_NOTICE
Copyright statement |
private static DAILogger |
LOG
Logger object for logging in this class |
private boolean |
mBase64encode
Is file content to be Base64 encoded (default false). |
private boolean |
mBinaryFile
Is the file a binary file (default true). |
private java.io.File |
mFile
The file to read from. |
private java.lang.String |
mFilename
The name of the file to read from |
private int |
mLength
Number of bytes/characters to read |
private int |
mOffset
Offset from start of file |
private BlockWriter |
mOutput
Activity output - file content |
| Fields inherited from class uk.org.ogsadai.activity.files.AbstractFileActivity |
mCredentials, mFileAccessProvider, mTopDir |
| Fields inherited from class uk.org.ogsadai.activity.Activity |
mContext, mExternalInputs, mExternalOutputs, mInternalInputs, mInternalOutputs |
| Constructor Summary | |
FileAccessActivity(org.w3c.dom.Element element)
|
|
| Method Summary | |
void |
initialise()
Gets the data resource accessor for the files data resource according to whether the users credentials permit this access. |
void |
processBlock()
Performs an iteration of the processing of an activity. |
| Methods inherited from class uk.org.ogsadai.activity.Activity |
cleanUp, connectsTo, createOutputPipe, getActivityConfiguration, getActivityName, getCause, getName, getObservableStatus, getProperties, getSession, getStatus, hasActivityConfiguration, hasProperties, process, processFirst, setActivityName, setCompleted, setError |
| 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
private static final DAILogger LOG
private java.io.File mFile
private java.lang.String mFilename
private boolean mBase64encode
private boolean mBinaryFile
private int mOffset
private int mLength
private BlockWriter mOutput
| Constructor Detail |
public FileAccessActivity(org.w3c.dom.Element element)
throws ActivitySpecificationException,
ActivityCreationException
| Method Detail |
public void initialise()
throws ActivitySpecificationException,
ActivityExecutionException
AbstractFileActivity
initialise in class AbstractFileActivityActivitySpecificationException - If the user is not permitted to access the resource.
ActivityExecutionException - If some internal problem occurs.Activity.initialise()public void processBlock()
ActivitysetCompleted method to indicate that
processing is complete, or the setError method if
an error occurs that will prevent the processing from
completing.
processBlock in class Activity
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||