|
iSeries Remote Systems v6.0.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.etools.iseries.core.dstore.common.ISeriesCodepageConverter
Clients should not instantiate this class
Field Summary | |
---|---|
static int |
CCSID_NO_CONVERSION
|
static String |
Copyright
|
static byte |
EBCDIC_SPACE
|
static byte |
SHIFT_IN
|
static byte |
SHIFT_OUT
|
Constructor Summary | |
---|---|
ISeriesCodepageConverter(com.ibm.as400.access.AS400 as400)
Constructor for ISeriesCodepageConverter |
|
ISeriesCodepageConverter(com.ibm.as400.access.AS400 as400,
boolean leaveVisual)
Create a code page converter which will optionally convert to logical or not as specified if the CCSID is bidirectional. |
|
ISeriesCodepageConverter(int ccsid,
com.ibm.as400.access.AS400 as400)
Constructor for ISeriesCodepageConverter |
|
ISeriesCodepageConverter(int ccsid,
com.ibm.as400.access.AS400 as400,
boolean leaveVisual)
Create a code page converter which will optionally convert to logical or not as specified if the CCSID is bidirectional. |
Method Summary | |
---|---|
byte[] |
convClientBytesToHostBytes(byte[] source,
int offset,
int length)
Deprecated. this method only works if the CCSID is supported on the locale, its recommended to use either: convClientBytesToHostBytesUTF8(byte[] source, int offset, int length) or convClientBytesToHostBytes(byte[] source, int offset, int length, String encoding) |
byte[] |
convClientBytesToHostBytes(byte[] source,
int offset,
int length,
String encoding)
Converts the specified source byte array into the destination byte array. |
byte[] |
convClientBytesToHostBytes(int targetCCSID,
byte[] source)
Converts the specified source byte array into the destination byte array. |
byte[] |
convClientBytesToHostBytes(int targetCCSID,
byte[] source,
String encoding)
Converts the specified source byte array into the destination byte array. |
byte[] |
convClientBytesToHostBytesUTF8(byte[] source,
int offset,
int length)
Converts the specified source byte array into the destination byte array. |
byte[] |
convClientBytesToHostBytesUTF8(int targetCCSID,
byte[] source)
Converts the specified source byte array into the destination byte array. |
byte[] |
convClientStringToHostBytes(int targetCCSID,
String source)
Converts the specified Java source string into a byte array. |
static byte[] |
convertContiguousShiftInShiftOutToSpaces(byte[] input)
Scan the input byte array and convert any sequence of SHIFT IN (0x0F) immediately followed by a SHIFT OUT (0x0E) to two spaces (0x40 0x40). |
byte[] |
convHostBytesToClientBytes(byte[] source,
int offset,
int length)
Converts the specified source byte array from the host into a destination byte array. |
byte[] |
convHostBytesToClientBytes(byte[] source,
int offset,
int length,
String encoding)
Converts the specified source byte array into a destination byte array. |
byte[] |
convHostBytesToClientBytes(int sourceCCSID,
byte[] source)
Deprecated. this will only work if the local encoding supports this CCSID, use convHostBytesToClientBytes(int sourceCCSID, byte[] source, String encoding) or convHostBytesToClientBytesUTF8(int sourceCCSID, byte[] source) |
byte[] |
convHostBytesToClientBytes(int sourceCCSID,
byte[] source,
String encoding)
Converts the specified source byte array into a destination byte array. |
byte[] |
convHostBytesToClientBytesUTF8(byte[] source,
int offset,
int length)
Converts the specified source byte array from the host into a destination byte array. |
byte[] |
convHostBytesToClientBytesUTF8(int sourceCCSID,
byte[] source)
Converts the specified source byte array from the host into a destination byte array. |
String |
convHostBytesToClientString(byte[] source,
int offset,
int length)
Converts the specified bytes into a Java string. |
String |
convHostBytesToClientString(int sourceCCSID,
byte[] source)
Converts the specified bytes into a Java string. |
com.ibm.as400.access.AS400 |
getAS400Object()
Returns the AS400 object |
static String |
getEncoding(int ccsidVal)
Returns the encoding given the CCSID |
void |
setAS400Object(com.ibm.as400.access.AS400 as400)
Set the AS400 object |
String |
xlateNameToHostEquiv(String name)
Updates all special characters (including variant) in the string to return the equivalent name on the server. |
String |
xlateNameToVisualEquiv(String equivNameOnServer)
Gets the visual equivalent of the name given the server equivalent of that name. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final String Copyright
public static final int CCSID_NO_CONVERSION
public static final byte SHIFT_IN
public static final byte SHIFT_OUT
public static final byte EBCDIC_SPACE
Constructor Detail |
public ISeriesCodepageConverter(com.ibm.as400.access.AS400 as400)
public ISeriesCodepageConverter(com.ibm.as400.access.AS400 as400, boolean leaveVisual)
as400
- The iSeries to connect toleaveVisual
- true if you don't want to convert to logical, false if you want to
convert from visual to logical and back.public ISeriesCodepageConverter(int ccsid, com.ibm.as400.access.AS400 as400, boolean leaveVisual) throws UnsupportedEncodingException
ccsid
- The CCSID to user for conversionas400
- The iSeries to connect toleaveVisual
- true if you don't want to convert to logical, false if you want to
convert from visual to logical and back.
UnsupportedEncodingException
- Thrown when the CCSID is not supported on the specified iSeries.public ISeriesCodepageConverter(int ccsid, com.ibm.as400.access.AS400 as400) throws UnsupportedEncodingException
Method Detail |
public com.ibm.as400.access.AS400 getAS400Object()
public void setAS400Object(com.ibm.as400.access.AS400 as400)
public String convHostBytesToClientString(int sourceCCSID, byte[] source) throws UnsupportedEncodingException
UnsupportedEncodingException
public String convHostBytesToClientString(byte[] source, int offset, int length)
public byte[] convHostBytesToClientBytes(int sourceCCSID, byte[] source) throws UnsupportedEncodingException
UnsupportedEncodingException
public byte[] convHostBytesToClientBytes(byte[] source, int offset, int length) throws UnsupportedEncodingException
UnsupportedEncodingException
public byte[] convHostBytesToClientBytesUTF8(int sourceCCSID, byte[] source) throws UnsupportedEncodingException
UnsupportedEncodingException
public byte[] convHostBytesToClientBytesUTF8(byte[] source, int offset, int length) throws UnsupportedEncodingException
UnsupportedEncodingException
public byte[] convHostBytesToClientBytes(int sourceCCSID, byte[] source, String encoding) throws UnsupportedEncodingException
UnsupportedEncodingException
public byte[] convHostBytesToClientBytes(byte[] source, int offset, int length, String encoding) throws UnsupportedEncodingException
UnsupportedEncodingException
public byte[] convClientStringToHostBytes(int targetCCSID, String source) throws UnsupportedEncodingException
UnsupportedEncodingException
public byte[] convClientBytesToHostBytes(int targetCCSID, byte[] source) throws UnsupportedEncodingException
UnsupportedEncodingException
public byte[] convClientBytesToHostBytes(byte[] source, int offset, int length) throws UnsupportedEncodingException
UnsupportedEncodingException
public byte[] convClientBytesToHostBytesUTF8(int targetCCSID, byte[] source) throws UnsupportedEncodingException
UnsupportedEncodingException
public byte[] convClientBytesToHostBytesUTF8(byte[] source, int offset, int length) throws UnsupportedEncodingException
UnsupportedEncodingException
public byte[] convClientBytesToHostBytes(int targetCCSID, byte[] source, String encoding) throws UnsupportedEncodingException
UnsupportedEncodingException
public byte[] convClientBytesToHostBytes(byte[] source, int offset, int length, String encoding) throws UnsupportedEncodingException
UnsupportedEncodingException
public String xlateNameToHostEquiv(String name) throws UnsupportedEncodingException
UnsupportedEncodingException
public String xlateNameToVisualEquiv(String equivNameOnServer) throws UnsupportedEncodingException
UnsupportedEncodingException
public static String getEncoding(int ccsidVal) throws UnsupportedEncodingException
UnsupportedEncodingException
public static byte[] convertContiguousShiftInShiftOutToSpaces(byte[] input)
|
iSeries Remote Systems v6.0.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |