public class NLSTableDownload extends Object
Modifier and Type | Field | Description |
---|---|---|
static int |
DOUBLE_BYTE_FROM_CCSID |
|
static int |
MIXED_BYTE_FROM_CCSID |
|
static int |
SINGLE_BYTE_FROM_CCSID |
Constructor | Description |
---|---|
NLSTableDownload(AS400ImplRemote system) |
Modifier and Type | Method | 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, UnknownHostException, AS400SecurityException, ConnectionDroppedException, InterruptedException, IOException
ServerStartupException
- If the server cannot be started.UnknownHostException
- If the host is not know.AS400SecurityException
- If a security or authority error occurs.ConnectionDroppedException
- If the connection is dropped.InterruptedException
- If this thread is interrupted.IOException
- If an error occurs while communicating with the system.public void disconnect()
public char[] download(int fromCCSID, int toCCSID, boolean doubleByteFrom) throws ConnectionDroppedException, IOException, InterruptedException
public char[] download(int fromCCSID, int toCCSID, int fromType) throws ConnectionDroppedException, IOException, 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.IOException
- If an error occurs while communicating with the system.InterruptedException
- If this thread is interrupted.Copyright © 2024. All rights reserved.