|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.eNetwork.beans.HOD.HODBean | +--com.ibm.eNetwork.beans.HOD.cpc.Converter
The Converter bean
performs a codepage-to-codepage conversion.
For the Arabic and Hebrew languages, Converter performs certain
BIDI-specific transformations, including the logical-to-visual
transform...or vice-versa, and Lam-Alef processing (Arabic only).
Converter implements the ConvertListener Interface in order to receive ConvertEvent events.
The Converter bean receives a ConvertEvent event which contains information about a file requiring conversion: the parameters are the conversion output file , input and output codepages and BIDI specific conversion attributes (when applicable). The ConvertEvent contains a field of class ActInfo. This ActInfo member contains all the above mentioned parameters specifying the conversion.
When the codepage conversion is finished, the Converter bean emits an ActionEvent to indicate that it is in the "ready" state.
The Converter does not use the standard JVM converters. Instead it uses HOD-supplied converters. Here is the list of supported codepages:
There are two ways for a caller to set up conversion parameters:
null
as the second constructor argument
ActInfo
, Serialized FormField Summary | |
static java.lang.String |
OS2
Used to specify the input or output host type as an OS/2 platform. |
static java.lang.String |
OS390
Used to specify the input or output host type as an OS/390 platform. |
static java.lang.String |
OS400
Used to specify the input or output host type as an OS/400 platform. |
static java.lang.String |
UNIX
Used to specify the input or output host type as a Unix platform. |
static java.lang.String |
WIN
Used to specify the input or output host type as a Dos/Windows platform. |
Fields inherited from class com.ibm.eNetwork.beans.HOD.HODBean |
BEAN_VERSION_STRING, TRACE_LEVEL, TRACE_MAXIMUM, TRACE_MINIMUM, TRACE_NONE, TRACE_NORMAL |
Fields inherited from interface com.ibm.eNetwork.HOD.common.HODConstants |
DEFAULT_WIN_FONT, HOD_ICON_EVENT, HOD_MSG_FILE, HOD_RAS_COMPID_ASSOC_PRT, HOD_RAS_COMPID_BLINKREMAP, HOD_RAS_COMPID_CODEPAGE, HOD_RAS_COMPID_COLORREMAP, HOD_RAS_COMPID_CONFIG, HOD_RAS_COMPID_FILETRANSFER, HOD_RAS_COMPID_FTP_SCREEN, HOD_RAS_COMPID_FTP_SESSION, HOD_RAS_COMPID_FTP_TERMINAL, HOD_RAS_COMPID_FUDOMA, HOD_RAS_COMPID_IMPEXP, HOD_RAS_COMPID_JNILOAD, HOD_RAS_COMPID_KEYPAD, HOD_RAS_COMPID_KEYREMAP, HOD_RAS_COMPID_MACRO, HOD_RAS_COMPID_MACROMANGR, HOD_RAS_COMPID_PRT_TERMINAL, HOD_RAS_COMPID_SCREEN, HOD_RAS_COMPID_SESSION, HOD_RAS_COMPID_SESSION_MGR, HOD_RAS_COMPID_SLP, HOD_RAS_COMPID_TERMINAL, HOD_RAS_FUNC_NAME, HOD_START_UP, HOD_TRANSFER_FILE_INFO, MOUSE_DOUBLE_CLICK_THRESHOLD, XFER_ASCII_GET_OPTIONS, XFER_ASCII_GET_OPTIONS_DEFAULT, XFER_ASCII_PUT_OPTIONS, XFER_ASCII_PUT_OPTIONS_DEFAULT, XFER_BINARY_GET_OPTIONS, XFER_BINARY_GET_OPTIONS_DEFAULT, XFER_BINARY_PUT_OPTIONS, XFER_BINARY_PUT_OPTIONS_DEFAULT, XFER_DEFAULT_OPTIONS, XFER_FILETYPE_DTA, XFER_FILETYPE_SAVF, XFER_FILETYPE_SRC, XFER_HOST_TYPE, XFER_HOST_TYPE_CICS, XFER_HOST_TYPE_CMS, XFER_HOST_TYPE_DEFAULT, XFER_HOST_TYPE_OS400, XFER_HOST_TYPE_TSO, XFER_PACKET_SIZE, XFER_PACKET_SIZE_DEFAULT, XFER_TIME_OUT_VALUE, XFER_TIME_OUT_VALUE_DEFAULT, XFER_TRANSFER_MODE, XFER_TRANSFER_MODE_ASCII, XFER_TRANSFER_MODE_BINARY, XFER_TRANSFER_MODE_DEFAULT |
Constructor Summary | |
Converter()
The default public constructor. |
Method Summary | |
void |
addActionListener(java.awt.event.ActionListener l)
Adds interested ActionEvent listeners wanting to be informed when a file conversion is complete. |
void |
dispose()
Cleans up memory. |
void |
execute(ActInfo a)
This method sets the bean properties and sets off the conversion. |
void |
execute(ConvertEvent e)
This method implements ConvertListener interface. |
java.lang.String |
getInputCodepage()
Returns the inputCodepage property value. |
java.lang.String |
getInputFileName()
Returns the inputFileName property value. |
java.lang.String |
getInputHostType()
Returns the inputHostType property value. |
java.lang.String |
getInputTextOrientation()
Returns the inputTextOrientation property value. |
java.lang.String |
getInputTextType()
Returns the inputTextType property value. |
java.lang.String |
getLanguage()
Returns the cpcLanguage property value. |
java.lang.String |
getNumeralShaping()
Returns the numeralShaping property value. |
java.lang.String |
getOutputCodepage()
Returns the outputCodepage property value. |
java.lang.String |
getOutputFileName()
Returns the outputFileName property value. |
java.lang.String |
getOutputHostType()
Returns the outputHostType property value. |
java.lang.String |
getOutputTextOrientation()
Returns the outputTextOrientation property value. |
java.lang.String |
getOutputTextType()
Returns the outputTextType property value. |
int |
getRecordLength()
Returns the recordLength property value. |
boolean |
isBinMode()
Returns the BinMode property value. |
boolean |
isLamAlef()
Returns the lamAlef property value. |
boolean |
isSymSwap()
Returns the SymSwap boolean property value. |
void |
processConversion()
Performs a codepage-to-codepage transformation according to the attributes registered in the Converter bean instance. |
void |
removeActionListener(java.awt.event.ActionListener l)
Removes registered ActionEvent listeners. |
void |
setBinMode(boolean BinMode)
Sets the BinMode property value. |
void |
setInputCodepage(java.lang.String inputCodepage)
Sets the inputCodepage property value. |
void |
setInputFileName(java.lang.String inputFileName)
Sets the inputFileName property value. |
void |
setInputHostType(java.lang.String inputHostType)
Sets the inputHostType property value. |
void |
setInputTextOrientation(java.lang.String inputTextOrientation)
Sets the inputTextOrientation property value. |
void |
setInputTextType(java.lang.String inputTextType)
Sets the inputTextType property value. |
void |
setLamAlef(boolean lamAlef)
Sets the lamAlef property value. |
void |
setLanguage(java.lang.String lang)
Sets the cpcLanguage property value. |
void |
setNumeralShaping(java.lang.String numeralShaping)
Sets the numeralShaping property value. |
void |
setOutputCodepage(java.lang.String outputCodepage)
Sets the outputCodepage property value. |
void |
setOutputFileName(java.lang.String outputFileName)
Sets the outputFileName property value. |
void |
setOutputHostType(java.lang.String outputHostType)
Sets the outputHostType property value. |
void |
setOutputTextOrientation(java.lang.String outputTextOrientation)
Sets the outputTextOrientation property value. |
void |
setOutputTextType(java.lang.String outputTextType)
Sets the outputTextType property value. |
void |
setRecordLength(int RecordLength)
Sets the recordLength property value. |
void |
setSymSwap(boolean SymSwap)
Sets the SymSwap property value. |
Methods inherited from class com.ibm.eNetwork.beans.HOD.HODBean |
addPropertyChangeListener, addTraceListener, addVetoableChangeListener, clone, getComponent, getFunction, getProperties, getTraceLevel, getTraceName, propertyChange, readExternal, removePropertyChangeListener, removeTraceListener, removeVetoableChangeListener, setProperties, setTraceLevel, toString, writeExternal |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final java.lang.String UNIX
public static final java.lang.String WIN
public static final java.lang.String OS2
public static final java.lang.String OS390
public static final java.lang.String OS400
Constructor Detail |
public Converter()
Method Detail |
public void setInputTextType(java.lang.String inputTextType)
The value should be one of the Session
class
TextType enumerations:
getInputTextType()
public java.lang.String getInputTextType()
setInputTextType(java.lang.String)
public void setOutputTextType(java.lang.String outputTextType)
The value should be one of the Session
class
TextType enumerations:
getOutputTextType()
public java.lang.String getOutputTextType()
setOutputTextType(java.lang.String)
public void setInputTextOrientation(java.lang.String inputTextOrientation)
The value should be one of the Session
class
TextOrientation enumerations:
getInputTextOrientation()
public java.lang.String getInputTextOrientation()
setInputTextOrientation(java.lang.String)
public void setOutputTextOrientation(java.lang.String outputTextOrientation)
The value should be one of the Session
class
TextOrientation enumerations:
getOutputTextOrientation()
public java.lang.String getOutputTextOrientation()
setOutputTextOrientation(java.lang.String)
public void setInputFileName(java.lang.String inputFileName)
getInputFileName()
public java.lang.String getInputFileName()
setInputFileName(java.lang.String)
public void setOutputFileName(java.lang.String outputFileName)
getOutputFileName()
public java.lang.String getOutputFileName()
setOutputFileName(java.lang.String)
public void setInputCodepage(java.lang.String inputCodepage)
getInputCodepage()
public java.lang.String getInputCodepage()
setInputCodepage(java.lang.String)
public void setOutputCodepage(java.lang.String outputCodepage)
getOutputCodepage()
public java.lang.String getOutputCodepage()
setOutputCodepage(java.lang.String)
public void setInputHostType(java.lang.String inputHostType)
The value should be one of the following Converter
class constants:
public java.lang.String getInputHostType()
setInputHostType(java.lang.String)
public void setOutputHostType(java.lang.String outputHostType)
The value should be one of the following Converter
class constants:
getOutputHostType()
public java.lang.String getOutputHostType()
setOutputHostType(java.lang.String)
public void setNumeralShaping(java.lang.String numeralShaping)
The value should be one of the Session
class
NumeralShaping enumerations:
getNumeralShaping()
public java.lang.String getNumeralShaping()
setNumeralShaping(java.lang.String)
public void setLamAlef(boolean lamAlef)
This property enables or disables LamAlef transform for Arabic codepages.
isLamAlef()
public boolean isLamAlef()
setLamAlef(boolean)
public void setSymSwap(boolean SymSwap)
This property enables or disables the Symmetric Swaping for Arabic and Hebrew codepages.
isSymSwap()
public boolean isSymSwap()
setSymSwap(boolean SymSwap)
public void setBinMode(boolean BinMode)
If this property is set to true
,
the Converter
converts the "end-of-line character"
according to input and output host types.
For OS/390 and OS/400, only fixed record length file processing is available.
The recordLength
property is used to set the record length.
isBinMode()
,
setRecordLength(int)
public boolean isBinMode()
setBinMode(boolean)
public void setRecordLength(int RecordLength)
getRecordLength()
public int getRecordLength()
setRecordLength(int)
public void setLanguage(java.lang.String lang)
getLanguage()
public java.lang.String getLanguage()
setLanguage(String)
public void processConversion()
Converter
bean instance.public void execute(ConvertEvent e)
It calls the execute(ActInfo a) method and sends an ActionEvent to inform an interested listener that the conversion is finished.
execute
in interface ConvertListener
e
- an instance of a ConvertEvent.ConvertEvent
,
ActInfo
public void execute(ActInfo a)
ActInfo
for more information.a
- an instance of ActInfo.public void addActionListener(java.awt.event.ActionListener l)
removeActionListener(ActionListener)
public void removeActionListener(java.awt.event.ActionListener l)
addActionListener(ActionListener)
public void dispose()
dispose
in class HODBean
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |