|
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
This class provides the default implementation for Data Types used by the WLXT to translate Binary Data to XML or XML data to Binary data.
This Class defines the method signatures for the basic Read and Write operations required for WLXT Data Types. It also defines defaults for type attributes used to describe characteristics of a given data type.
Field Summary | |
static java.lang.String |
codepageEBCDIC
|
Constructor Summary | |
Bintype()
Creates a new Bintype. |
Method Summary | |
protected java.lang.String |
applyPadAndTrim(java.lang.String value,
com.bea.wlxt.mfl.MFLField fld,
boolean applyPad,
boolean applyTrim)
Creates a String that has either been padded to a specified length or has had leading, trailing or both white space trimmed from it. |
boolean |
canBeDelimited()
Returns true if this type represents a variable length data type which may be terminated by a delimiter. |
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 as the data type of a field length. |
boolean |
canBePadded()
Returns true if this type can be padded. |
boolean |
canBeTagFieldType()
Returns true if this type can be used as the data type for a tag field. |
boolean |
canBeTrimmed()
Returns true if this type can be trimmed. |
boolean |
canHaveDecimalPlaces()
Returns true if this type allows for decimal places. |
static byte[] |
getBinaryBytes(java.lang.String str)
Creates a binary byte array from String input. |
java.lang.String |
getDescriptionText()
Returns a String that contains a text description of this data types function. |
java.lang.String |
getDisplayName()
Returns a String containing the Display Name for a data type name. |
java.lang.String |
getTypeName()
Returns a String containing the data type name. |
boolean |
isCodepageOK()
Returns true if the data type supports the use of code pages. |
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 may have a fixed data length. |
boolean |
isValueOK()
Returns true if this data type may have an initial value assigned, i.e. |
static java.lang.String |
makeString(byte[] b)
Creates a String from a binary byte array. |
abstract java.lang.String |
read(java.io.InputStream byteStream,
com.bea.wlxt.mfl.MFLField mflField)
Defines the method signature for reading a field. |
protected byte[] |
readDelimitedField(java.io.InputStream byteStream,
com.bea.wlxt.mfl.MFLField mflField)
Reads data from the input stream until encountering delimiter for this field. |
protected int |
readLength(java.io.InputStream byteStream,
com.bea.wlxt.mfl.MFLField fld)
Reads the length value for an MFL field from the input buffer. |
protected java.lang.String |
readTag(java.io.InputStream byteStream,
com.bea.wlxt.mfl.MFLField fld)
Reads and Validates a tag value for an MFL field from the input buffer. |
protected void |
reverseBytes(byte[] data)
Reverse the order of bytes in a byte array. |
abstract void |
write(com.bea.wlxt.bintype.BintypeOutputStream byteStream,
com.bea.wlxt.mfl.MFLField mflField,
java.lang.String value)
Defines the method signature for writing a field. |
protected void |
writeLength(com.bea.wlxt.bintype.BintypeOutputStream byteStream,
com.bea.wlxt.mfl.MFLField fld,
int fldLen)
Writes the length value for an MFL field to the output stream. |
protected void |
writeTag(com.bea.wlxt.bintype.BintypeOutputStream byteStream,
com.bea.wlxt.mfl.MFLField fld)
Writes a tag value for an MFL field to the output stream. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
public static final java.lang.String codepageEBCDIC
Constructor Detail |
public Bintype()
Method Detail |
public abstract java.lang.String read(java.io.InputStream byteStream, com.bea.wlxt.mfl.MFLField mflField) throws com.bea.wlxt.bintype.BintypeException
byteStream
- InputStream object containing the data related to this fieldmflField
- MFLField object containing the meta data that describes the
data contained in the field.public abstract void write(com.bea.wlxt.bintype.BintypeOutputStream byteStream, com.bea.wlxt.mfl.MFLField mflField, java.lang.String value) throws com.bea.wlxt.bintype.BintypeException
byteStream
- BinTypeOutputStream object that will contain the data written
by this method.mflField
- MFLField object containing the meta data that describes the
data contained in the field.value
- String object that contains the data value to be written.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()
public boolean canHaveDecimalPlaces()
public boolean canBePadded()
public boolean canBeTrimmed()
public static byte[] getBinaryBytes(java.lang.String str)
str
- String object that will contain the data that is converted
to a byte array by this method.public static java.lang.String makeString(byte[] b)
b
- byte[] Binary byte array containing data to be converted to a String.protected void reverseBytes(byte[] data)
byteStream
- InputStream the input stream that contains the binary datafld
- MFLField the MFL field that is currently being read from the
input stream.protected java.lang.String readTag(java.io.InputStream byteStream, com.bea.wlxt.mfl.MFLField fld) throws com.bea.wlxt.bintype.BintypeException
byteStream
- InputStream the input stream that contains the binary datafld
- MFLField the MFL field that is currently being read from the
input stream.protected int readLength(java.io.InputStream byteStream, com.bea.wlxt.mfl.MFLField fld) throws com.bea.wlxt.bintype.BintypeException
byteStream
- InputStream the input stream that contains the binary datafld
- MFLField the MFL field that is currently being read from the
input stream.protected void writeTag(com.bea.wlxt.bintype.BintypeOutputStream byteStream, com.bea.wlxt.mfl.MFLField fld) throws com.bea.wlxt.bintype.BintypeException
byteStream
- BintypeOutputStream the output stream that contains binary datafld
- MFLField the MFL field that is currently being written to the
output stream.protected void writeLength(com.bea.wlxt.bintype.BintypeOutputStream byteStream, com.bea.wlxt.mfl.MFLField fld, int fldLen) throws com.bea.wlxt.bintype.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 specifiedint
- fldLen the length of the field data.protected byte[] readDelimitedField(java.io.InputStream byteStream, com.bea.wlxt.mfl.MFLField mflField) throws com.bea.wlxt.bintype.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 java.lang.String applyPadAndTrim(java.lang.String value, com.bea.wlxt.mfl.MFLField fld, boolean applyPad, boolean applyTrim)
value
- String the String that the pad or trim operations will be applied to.fld
- MFLField the MFL field that is currently being operated upon.applyPad
- boolean switch indicating whether or not padding is to be performed.applyTrim
- boolean switch indicating whether or not trimming is to be performed.public java.lang.String getDescriptionText()
public java.lang.String getTypeName()
public java.lang.String getDisplayName()
|
WebLogic Integration | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |