|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--com.ibm.dse.base.FormatElement
|
+--com.ibm.dse.base.FormatDecorator
|
+--com.ibm.dse.base.SelfLength
This decorator prepends a String with the byte-representation of the size of the String.
| Field Summary | |
int |
byteOrdering
|
boolean |
lengthIncluded
|
boolean |
lengthRepresentation
|
int |
size
|
| Fields inherited from class com.ibm.dse.base.FormatDecorator |
decorated |
| Fields inherited from class com.ibm.dse.base.FormatElement |
dataElementName,
name |
| Constructor Summary | |
SelfLength()
This is the default constructor used to create a SelfLength object. |
|
SelfLength(java.lang.String aName)
This is the constructor used by the Externalizer to create a SelfLength object. |
|
| Method Summary | |
java.lang.String |
addDecoration(java.lang.String aString)
Prepends the length of the formatted String as an unsigned integer to the String. |
java.lang.String[] |
extract(java.lang.String aString)
Extracts (strips) the substring corresponding to the format element from the input String and returns it and the remaining String as the elements of an array. |
int |
getByteOrdering()
Returns the value of byteOrdering. |
boolean |
getLengthIncluded()
Returns true if the length of the decorator is included in the length of the String. |
boolean |
getLengthRepresentation()
Gets the value of the lengthRepresentation parameter. |
int |
getSize()
Returns the size of the String. |
java.lang.Object |
initializeFrom(Tag aTag)
Initializes a SelfLength object with the aTag attributes. |
java.lang.String |
removeDecoration(java.lang.String aString)
Removes the size chars from the input String. |
void |
setByteOrdering(int anInt)
Sets the value of byteOrdering. |
void |
setLengthIncluded(boolean aBoolean)
Sets the value of the lengthIncluded attribute. |
void |
setLengthRepresentation(boolean aBoolean)
Sets the value of the lengthRepresentation attribute. |
void |
setSize(int anInt)
Sets the size of the decorating string. |
Vector |
toStrings()
Returns a visual representation of this decorator. |
| Methods inherited from class com.ibm.dse.base.FormatDecorator |
format,
format,
getDataElementName,
getDecorated,
getName,
isConstant,
rootDecorated,
rootDecorator,
setDecorated,
toString,
unformat,
unformat |
| Methods inherited from class com.ibm.dse.base.FormatElement |
exceptionInfo,
externalizer,
format,
getExternalizer,
getTagName,
isCacheable,
readExternal,
readExternal,
readObject,
reinitialize,
removeExternal,
setDataElementName,
setExternalizer,
setName,
toTags,
unformat,
writeExternal,
writeExternal |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
| Field Detail |
public int size
public int byteOrdering
public boolean lengthIncluded
public boolean lengthRepresentation
| Constructor Detail |
public SelfLength()
public SelfLength(java.lang.String aName)
throws java.io.IOException
aString - java.lang.String| Method Detail |
public java.lang.String addDecoration(java.lang.String aString)
throws DSEInvalidArgumentException
aString - String
public java.lang.String[] extract(java.lang.String aString)
throws DSEInvalidArgumentException
aString - Stringpublic int getByteOrdering()
public boolean getLengthIncluded()
public boolean getLengthRepresentation()
public int getSize()
public java.lang.Object initializeFrom(Tag aTag)
aTag - com.ibm.dse.base.Tag
public java.lang.String removeDecoration(java.lang.String aString)
throws DSEInvalidArgumentException
aString - Stringpublic void setByteOrdering(int anInt)
anInt - intpublic void setLengthIncluded(boolean aBoolean)
aBoolean - booleanpublic void setLengthRepresentation(boolean aBoolean)
aBoolean - booleanpublic void setSize(int anInt)
anInt - intpublic Vector toStrings()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||