|
IBM WebSphere Multichannel Bank 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
public class 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, xmlSupport |
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. |
protected java.lang.String |
getBodyEncoding()
This method is designed for the extension. |
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. |
int |
unformat(int ndxFrom,
int ndxTo,
java.lang.String str,
Context ctx)
Unformat strings that between ndxFrom and ndxTo into the Context. |
int |
unformat(int ndxFrom,
int ndxTo,
java.lang.String str,
DataElement de)
Unformat strings that between ndxFrom and ndxTo into the DataElement. |
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 |
---|
checkIndexes, exceptionInfo, externalizer, getAttributeValueForXMLFormat, getExternalizer, getTagName, isCacheable, isNull, 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.String
java.io.IOException
Method 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 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 class FormatDecorator
public java.lang.String removeDecoration(java.lang.String aString, int intArray) throws DSEInvalidArgumentException
aString
- java.lang.StringintArray
- int
DSEInvalidArgumentException
- - The exception descriptionpublic int unformat(int ndxFrom, int ndxTo, java.lang.String str, Context ctx) throws DSEInvalidRequestException, DSEInvalidArgumentException
unformat
in class FormatElement
str
- java.lang.StringndxFrom
- intndxTo
- intctx
- com.ibm.btt.base.Context;
DSEInvalidRequestException
DSEInvalidArgumentException
public int unformat(int ndxFrom, int ndxTo, java.lang.String str, DataElement de) throws DSEInvalidRequestException, DSEInvalidArgumentException
unformat
in class FormatElement
str
- java.lang.StringndxFrom
- intndxTo
- intde
- com.ibm.btt.base.DataElement;
DSEInvalidRequestException
DSEInvalidArgumentException
protected java.lang.String getBodyEncoding()
|
IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |