|
WebLogic Integration | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.bea.wlxt.bintype.Bintype | +--com.bea.wlxt.bintype.BintypeString
This class provides the default implementation for Data Types used by the WLXT to translate Binary String Data to XML or XML data to Binary String data.
Fields inherited from class com.bea.wlxt.bintype.Bintype |
codepageEBCDIC |
Constructor Summary | |
BintypeString()
|
Method Summary | |
boolean |
canBeDelimited()
Returns true if this type allows delimiters to mark the end of the field. |
boolean |
canBeFieldType()
Returns true if this type can be used to describe an MFL field. |
boolean |
canBeLenFieldType()
Returns true if this type can be used to specify a fields length. |
boolean |
canBeTagFieldType()
Returns true if this type can be used as a tag for binary data. |
boolean |
isCodepageOK()
Returns true if you may specify the codepage. |
boolean |
isCutoffRequired()
Returns true if this type requires a cutoff date. |
boolean |
isDateType()
Returns true if this type is a Date type. |
boolean |
isFixedSize()
Returns true if this type has a type specified size. |
boolean |
isValueOK()
Defaults to false for String types. |
protected java.lang.String |
makeString(byte[] data,
com.bea.wlxt.mfl.MFLField mflField)
Creates and returns a String from the binary byte array. |
protected byte[] |
readByteField(java.io.InputStream byteStream,
com.bea.wlxt.mfl.MFLField mflField)
|
protected byte[] |
readDelimitedStringField(java.io.InputStream byteStream,
com.bea.wlxt.mfl.MFLField mflField)
Reads data from the input stream until encountering delimiter for this field. |
protected byte[] |
readField(java.io.InputStream byteStream,
com.bea.wlxt.mfl.MFLField mflField)
Creates and returns a byte array containing data for the specified MFL field. |
protected java.lang.String |
trimBoth(java.lang.String data,
char trimChar)
Trims specific characters from both ends of the String data |
protected java.lang.String |
trimLeading(java.lang.String data,
char trimChar)
Trims specific characters from the leading end of the String data |
protected java.lang.String |
trimTrailing(java.lang.String data,
char trimChar)
Trims specific characters from the trailing end of the String data |
protected void |
writeField(BintypeOutputStream byteStream,
com.bea.wlxt.mfl.MFLField mflField,
java.lang.String value,
java.lang.String codepage)
Writes String data to the output stream for the specified MFL Field |
Methods inherited from class com.bea.wlxt.bintype.Bintype |
applyPadAndTrim,
applyPadTrimAndTruncate,
canBeDataDelimited,
canBeDelimSeparator,
canBePadded,
canBePassLiteral,
canBeTrimmed,
canBeTruncated,
canHaveDecimalPlaces,
getBinaryBytes,
getDescriptionText,
getDisplayName,
getTypeName,
makeString,
read,
readDataDelim,
readDelimitedField,
readLength,
readTag,
reverseBytes,
write,
writeLength,
writeTag |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public BintypeString()
Method Detail |
protected java.lang.String makeString(byte[] data, com.bea.wlxt.mfl.MFLField mflField) throws BintypeException
data
- byte[] the input binary data byte array.mflField
- MFLField the MFL field that is currently being read from the
input stream.protected byte[] readField(java.io.InputStream byteStream, com.bea.wlxt.mfl.MFLField mflField) throws BintypeException
byteStream
- InputStream the input byte stream containing binary data.mflField
- MFLField the MFL field that is currently being read from the
input stream.protected byte[] readDelimitedStringField(java.io.InputStream byteStream, com.bea.wlxt.mfl.MFLField mflField) throws BintypeException
byteStream
- BintypeOutputStream the output stream that contains binary datafld
- MFLField the MFL field that is currently being written to the
output stream. This field may or may not require the length to be specifiedfldLen
- int the length of the field data.protected byte[] readByteField(java.io.InputStream byteStream, com.bea.wlxt.mfl.MFLField mflField) throws BintypeException
protected void writeField(BintypeOutputStream byteStream, com.bea.wlxt.mfl.MFLField mflField, java.lang.String value, java.lang.String codepage) throws BintypeException
byteStream
- BintypeOutputStream the output byte stream containing binary data.mflField
- MFLField the MFL field that is currently being written to the
output stream.value
- String a String containing the data value to be written to output stream.codepage
- String the name of the codepage used to format the data value.protected java.lang.String trimBoth(java.lang.String data, char trimChar)
data
- String input String data.trimChar
- specific character to be trimmed from either end of input String data.protected java.lang.String trimLeading(java.lang.String data, char trimChar)
data
- String input String data.trimChar
- specific character to be trimmed from the beginning of input String data.protected java.lang.String trimTrailing(java.lang.String data, char trimChar)
data
- String input String data.trimChar
- specific character to be trimmed from the end of input String data.public boolean canBeFieldType()
public boolean canBeLenFieldType()
public boolean canBeTagFieldType()
public boolean canBeDelimited()
public boolean isFixedSize()
public boolean isDateType()
public boolean isCutoffRequired()
public boolean isCodepageOK()
public boolean isValueOK()
|
WebLogic Integration | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |