The IfxToJavaChar() method

The IfxToJavaChar() method converts the HCL OneDB™ CHAR (n) and CHARACTER (n) data types to the Java™ string data type. The conversion is achieved by creating a string from given bytes.

Method signature

public String IfxToJavaChar (byte b [], short prec,boolean encoption)
public String IfxToJavaChar (byte b [], boolean encoption) 
public String IfxToJavaChar (byte b [], int offset, int length,
       short prec, boolean encoption)
public String IfxToJavaChar (byte b [], int offset, int length,
       boolean encoption) 
public String IfxToJavaChar (byte b [], short prec, String dbEnc,
       boolean encoption) 
public String IfxToJavaChar (byte b [], String dbEnc, boolean encoption)
       throws IOException
public String IfxToJavaChar (byte b [], int offset, int length,
       short prec,
       String dbEnc, boolean encoption) 
public String IfxToJavaChar (byte b [], int offset, int length,
       String dbEnc, boolean encoption)

Input parameters

b
The bytes encoding data
dbEnc
The JDK encoding.
offset
The offset into byte array.
prec
The precision as received from HCL OneDB.
length
The data length.