public class NLSTableDownload
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
DOUBLE_BYTE_FROM_CCSID |
static int |
MIXED_BYTE_FROM_CCSID |
static int |
SINGLE_BYTE_FROM_CCSID |
Constructor and Description |
---|
NLSTableDownload(AS400ImplRemote system) |
Modifier and Type | Method and Description |
---|---|
void |
connect()
connect to the previously set server.
|
void |
disconnect()
Disconnect from the host server.
|
char[] |
download(int fromCCSID,
int toCCSID,
boolean doubleByteFrom) |
char[] |
download(int fromCCSID,
int toCCSID,
int fromType)
Download table
|
public static final int SINGLE_BYTE_FROM_CCSID
public static final int DOUBLE_BYTE_FROM_CCSID
public static final int MIXED_BYTE_FROM_CCSID
public NLSTableDownload(AS400ImplRemote system)
system
- The server to execute the program.public void connect() throws ServerStartupException, java.net.UnknownHostException, AS400SecurityException, ConnectionDroppedException, java.lang.InterruptedException, java.io.IOException
ServerStartupException
- If the server cannot be started.java.net.UnknownHostException
- If the host is not know.AS400SecurityException
- If a security or authority error occurs.ConnectionDroppedException
- If the connection is dropped.java.lang.InterruptedException
- If this thread is interrupted.java.io.IOException
- If an error occurs while communicating with the system.public void disconnect()
public char[] download(int fromCCSID, int toCCSID, boolean doubleByteFrom) throws ConnectionDroppedException, java.io.IOException, java.lang.InterruptedException
ConnectionDroppedException
java.io.IOException
java.lang.InterruptedException
public char[] download(int fromCCSID, int toCCSID, int fromType) throws ConnectionDroppedException, java.io.IOException, java.lang.InterruptedException
fromCCSID
- the ccsid to translate fromtoCCSID
- the ccsid to traslate tofromType
- the type of the from CCSID, i.e. DOUBLE_TYPE_FROM_CCSID, etc..ConnectionDroppedException
- If the connection is dropped.java.io.IOException
- If an error occurs while communicating with the system.java.lang.InterruptedException
- If this thread is interrupted.