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.Stringm_hexbyteoptional first 16 byte of file, or less if shorter.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidappendValue(java.lang.String fragment)Appends a piece of text to the existing text.java.lang.StringgetValue()AccessorvoidsetValue(java.lang.String hexbyte)Accessor.voidtoString(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:
appendValuein interfaceHasText- Parameters:
fragment- is a piece of text to append to existing text. Appendingnullis a noop.
-
getValue
public java.lang.String getValue()
Accessor- Specified by:
getValuein interfaceHasText- See Also:
setValue(String)
-
setValue
public void setValue(java.lang.String hexbyte)
Accessor.- Specified by:
setValuein interfaceHasText- Parameters:
hexbyte-- See Also:
getValue()
-
toString
public void toString(java.io.Writer stream) throws java.io.IOExceptionConverts the active state into something meant for human consumption. The method will be called when recursively traversing the instance tree.- Specified by:
toStringin 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.
-
-