|
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.BintypeDate
Fields inherited from class com.bea.wlxt.bintype.Bintype |
codepageEBCDIC |
Constructor Summary | |
BintypeDate()
|
Method Summary | |
java.lang.String |
getLocalizedDate()
Generate localized date for testing purposes based on parent classes format |
abstract java.text.SimpleDateFormat |
getLocalizedFormat()
Abstract base class to force parent to supply its date format |
static boolean |
isEBCDIC(java.lang.String type)
Convinience method to determine if the value of the input string is EBCDIC. |
protected static java.lang.String |
readDate(java.lang.String date,
java.text.SimpleDateFormat fmt)
This class provides the default implementation for Data Types used by the WLXT to translate Binary Date Data to XML or XML data to Binary Date data. |
protected static java.lang.String |
readDate(java.lang.String date,
java.text.SimpleDateFormat fmt,
com.bea.wlxt.mfl.MFLField fld,
int yearpos)
Returns a String containing the date. |
protected java.lang.String |
readDateField(java.io.InputStream byteStream,
com.bea.wlxt.mfl.MFLField mflField,
int dateLength)
Reads Date file based on encoding |
protected static java.lang.String |
writeDate(java.lang.String date,
java.text.SimpleDateFormat fmt)
Returns a String containing the date to be written. |
protected void |
writeDateField(BintypeOutputStream byteStream,
com.bea.wlxt.mfl.MFLField mflField,
java.lang.String value)
Writes Date file based on encoding |
Methods inherited from class com.bea.wlxt.bintype.Bintype |
applyPadAndTrim,
applyPadTrimAndTruncate,
canBeDataDelimited,
canBeDelimited,
canBeDelimSeparator,
canBeFieldType,
canBeLenFieldType,
canBePadded,
canBePassLiteral,
canBeTagFieldType,
canBeTrimmed,
canBeTruncated,
canHaveDecimalPlaces,
getBinaryBytes,
getDescriptionText,
getDisplayName,
getTypeName,
isCodepageOK,
isCutoffRequired,
isDateType,
isFixedSize,
isValueOK,
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 BintypeDate()
Method Detail |
protected java.lang.String readDateField(java.io.InputStream byteStream, com.bea.wlxt.mfl.MFLField mflField, int dateLength) throws BintypeException, java.io.UnsupportedEncodingException, java.io.IOException
byteStream
- InputStream the input byte stream containing binary data.mflField
- MFLField the MFL field that is currently being read from the
input stream.dateLength
- The length of the date in charactersprotected void writeDateField(BintypeOutputStream byteStream, com.bea.wlxt.mfl.MFLField mflField, java.lang.String value) throws java.io.UnsupportedEncodingException, java.io.IOException
byteStream
- InputStream the input byte stream containing binary data.mflField
- MFLField the MFL field that is currently being read from the
input stream.value
- The date to writeprotected static java.lang.String readDate(java.lang.String date, java.text.SimpleDateFormat fmt) throws java.lang.Exception
protected static java.lang.String readDate(java.lang.String date, java.text.SimpleDateFormat fmt, com.bea.wlxt.mfl.MFLField fld, int yearpos) throws java.lang.Exception
date
- String the Date that is to be read/parsed.fmt
- SimpleDateFormat object that describes the the date format.fld
- MFLField the field description for the date fieldyearpos
- int the relative position of the year field in the date format.protected static java.lang.String writeDate(java.lang.String date, java.text.SimpleDateFormat fmt) throws java.lang.Exception
date
- String the Date that is to be written.fmt
- String the codepage that applies to the output data format.public java.lang.String getLocalizedDate() throws java.lang.Exception
public abstract java.text.SimpleDateFormat getLocalizedFormat()
public static boolean isEBCDIC(java.lang.String type)
type
- String
|
WebLogic Integration | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |