ewe.io
Class EweFile.EweEntry

java.lang.Object
  extended byewe.data.DataObject
      extended byewe.data.LiveObject
          extended byewe.data.LiveTreeNode
              extended byewe.io.EweFile.EweEntry
All Implemented Interfaces:
Comparable, Copyable, DataUnit, FieldListener, LiveData, MutableTreeNode, TreeNode
Enclosing class:
EweFile

public static class EweFile.EweEntry
extends LiveTreeNode


Field Summary
 int length
          The size of the entry in bytes.
 SubString myFileName
           
 String name
          The name of the entry.
 int offset
          The location of the first byte of the entry in the EweFile.
 
Fields inherited from class ewe.data.LiveTreeNode
children, parent
 
Constructor Summary
EweFile.EweEntry(String name)
           
 
Method Summary
 int compareTo(Object other)
          Compare this object with another.
 String getName()
          By default this returns the String "unnamed".
 String toString()
          Return a String representation of this object.
 
Methods inherited from class ewe.data.LiveTreeNode
addChild, addressOfChild, addressOfChild, addressOfChild, canExpand, collapse, expand, findNamedChild, getChild, getChildAt, getChildAt, getChildCount, getChildren, getParent, getParent, getSibling, indexOfChild, insertChild, isLeaf, isNamed, removeChild, setParent
 
Methods inherited from class ewe.data.LiveObject
action, action, addMeToPanel, addObjectToPanel, addToPanel, decode, decoded, decodeFields, enableEditorScrolling, encode, encoded, encodeFields, fieldChanged, fieldChanged, fieldEvent, getEditor, getEditorScroller, getIcon, input, makeNewEditor, runAsApp, textDecode, textEncode
 
Methods inherited from class ewe.data.DataObject
_getSetField, appendAllFields, copied, copyFrom, equals, getCopy, getDeclaredField, getDeclaredFieldValue, getDeclaredFieldValue, getFieldList, getFieldList, getMyFieldList, getNew
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode
 
Methods inherited from interface ewe.data.DataUnit
copyFrom, getNew
 
Methods inherited from interface ewe.util.Copyable
getCopy
 

Field Detail

name

public String name
The name of the entry.


length

public int length
The size of the entry in bytes.


offset

public int offset
The location of the first byte of the entry in the EweFile.


myFileName

public SubString myFileName
Constructor Detail

EweFile.EweEntry

public EweFile.EweEntry(String name)
Method Detail

toString

public String toString()
Description copied from class: Object
Return a String representation of this object.

Overrides:
toString in class Object
Returns:
a String representing this object.

getName

public String getName()
Description copied from class: LiveObject
By default this returns the String "unnamed".

Specified by:
getName in interface LiveData
Overrides:
getName in class LiveObject

compareTo

public int compareTo(Object other)
Description copied from interface: Comparable
Compare this object with another. It should return: less than 0 if this object is considered LESS than the "other" object; greater than 0 if this object is considered GREATER than the "other" object; 0 if this object is considered EQUAL to the "other" object. (i.e. it is an implicit subtraction).

Specified by:
compareTo in interface Comparable
Overrides:
compareTo in class DataObject