Class File
- java.lang.Object
-
- org.griphyn.vdl.Chimera
-
- edu.isi.pegasus.planner.invocation.Invocation
-
- edu.isi.pegasus.planner.invocation.File
-
- All Implemented Interfaces:
HasText
,java.io.Serializable
- Direct Known Subclasses:
Descriptor
,Regular
,Temporary
public abstract class File extends Invocation implements HasText
This class is the base class for a file object.- Version:
- $Revision$
- Author:
- Jens-S. Vöckler, Yong Zhao
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.String
m_hexbyte
optional first 16 byte of file, or less if shorter.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
appendValue(java.lang.String fragment)
Appends a piece of text to the existing text.java.lang.String
getValue()
Accessorvoid
setValue(java.lang.String hexbyte)
Accessor.void
toString(java.io.Writer stream)
Converts the active state into something meant for human consumption.
-
-
-
Method Detail
-
appendValue
public void appendValue(java.lang.String fragment)
Appends a piece of text to the existing text.- Specified by:
appendValue
in interfaceHasText
- Parameters:
fragment
- is a piece of text to append to existing text. Appendingnull
is a noop.
-
getValue
public java.lang.String getValue()
Accessor- Specified by:
getValue
in interfaceHasText
- See Also:
setValue(String)
-
setValue
public void setValue(java.lang.String hexbyte)
Accessor.- Specified by:
setValue
in interfaceHasText
- Parameters:
hexbyte
-- See Also:
getValue()
-
toString
public void toString(java.io.Writer stream) throws java.io.IOException
Converts the active state into something meant for human consumption. The method will be called when recursively traversing the instance tree.- Specified by:
toString
in classorg.griphyn.vdl.Chimera
- Parameters:
stream
- is a stream opened and ready for writing. This can also be a string stream for efficient output.- Throws:
java.io.IOException
- if something fishy happens to the stream.
-
-