|
IBM Branch Transformation Toolkit Javadoc | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.btt.base.FormatElement
com.ibm.btt.base.FormatDecorator
com.ibm.btt.base.Compressor
This decorator compresses its decorated String in order to reduce the decorated string size.
Field Summary | |
---|---|
protected int |
bufferSize
|
static int |
DEFAULT_BUFFER_SIZE
|
static byte |
DEFAULT_COMPRESSION
|
Fields inherited from class com.ibm.btt.base.FormatDecorator |
---|
decorated |
Fields inherited from class com.ibm.btt.base.FormatElement |
---|
dataElementName, externalizer, name |
Constructor Summary | |
---|---|
Compressor()
This constructor creates a Compressor object. |
|
Compressor(java.lang.String aName)
This constructor creates a new instance of the Compressor class, which is obtained from the external definition files through aName. |
Method Summary | |
---|---|
java.lang.String |
addDecoration(java.lang.String aString)
Compresses the aString parameter and returns the compressed String. |
java.lang.Object |
initializeFrom(Tag aTag)
Initializes a Compressor with the aTag attributes. |
java.lang.String |
removeDecoration(java.lang.String aString)
Returns the uncompressed String resulting from aString. |
java.lang.String |
removeDecoration(java.lang.String aString,
int intArray)
Returns the uncompressed String resulting from aString. |
Vector |
toStrings()
Return a visual representation of the Compressor object. |
Methods inherited from class com.ibm.btt.base.FormatDecorator |
---|
extract, format, format, getDataElementName, getDecorated, getName, isConstant, isItConstant, reinitialize, rootDecorated, rootDecorator, setDecorated, toString, unformat, unformat |
Methods inherited from class com.ibm.btt.base.FormatElement |
---|
exceptionInfo, externalizer, getExternalizer, getTagName, isCacheable, readExternal, readExternal, readObject, removeExternal, setDataElementName, setExternalizer, setName, setSize, toTags, writeExternal, writeExternal |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final byte DEFAULT_COMPRESSION
public static final int DEFAULT_BUFFER_SIZE
protected int bufferSize
Constructor Detail |
public Compressor()
public Compressor(java.lang.String aName) throws java.io.IOException
aName
- java.lang.StringMethod Detail |
public java.lang.String addDecoration(java.lang.String aString) throws DSEInvalidArgumentException
addDecoration
in class FormatDecorator
DSEInvalidArgumentException
public java.lang.Object initializeFrom(Tag aTag)
initializeFrom
in interface Externalizable
initializeFrom
in class FormatElement
aTag
- com.ibm.btt.base.Tag
public java.lang.String removeDecoration(java.lang.String aString) throws DSEInvalidArgumentException
removeDecoration
in class FormatDecorator
aString
- String
DSEInvalidArgumentException
public Vector toStrings()
toStrings
in interface Externalizable
toStrings
in class FormatDecorator
public java.lang.String removeDecoration(java.lang.String aString, int intArray) throws DSEInvalidArgumentException
aString
- java.lang.StringintArray
- int
DSEInvalidArgumentException
- - The exception description
|
IBM Branch Transformation Toolkit Javadoc | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |