public class AS400Xtfr extends Object
| Modifier and Type | Method and Description |
|---|---|
void |
addFTPStatusListener(FTPStatusListener listener)
Add a FTPStatusListener to the listener list.
|
boolean |
connect(String host)
Set up ftp sockets and connect to an as400
|
void |
disconnect()
Send quit command to ftp server and close connections
|
String |
getFieldName(int which)
Convenience method to return the name of a field
|
boolean |
getFile(String remoteFile,
String localFile,
String statement,
boolean useInternal)
Transfer the file information to an output file
|
int |
getNumberOfFields()
Returns the number of fields in the File Field Definition array of fields
returned from the DSPFFD command
|
boolean |
isConnected()
returns whether or not the system is connected to an AS400 or not
|
boolean |
isFieldSelected(int which)
Returns whether a field is selected for output or not
|
boolean |
isFieldsSelected()
Returns whether there are any fields selected or not
|
boolean |
login(String user,
String passWord)
Send the user id and password to the connected host
|
void |
removeFTPStatusListener(FTPStatusListener listener)
Remove a FTPStatusListener from the listener list.
|
protected void |
selectAll()
Select all the fields for output
|
protected void |
selectNone()
Unselect all fields for output.
|
void |
setDecimalChar(char dec) |
void |
setFieldSelected(int which,
boolean value)
Convenience method to select or unselect a field for output
|
void |
setOutputFilter(OutputFilterInterface o) |
public AS400Xtfr(tnvt v)
public void setOutputFilter(OutputFilterInterface o)
public void setDecimalChar(char dec)
public boolean connect(String host)
host - a hostnamepublic void disconnect()
public boolean isConnected()
public void addFTPStatusListener(FTPStatusListener listener)
listener - The FTPStatusListener to be addedpublic void removeFTPStatusListener(FTPStatusListener listener)
listener - The FTPStatusListener to be removedpublic boolean login(String user, String passWord)
user - The user namepassWord - The password of the userpublic boolean isFieldSelected(int which)
which - number of the field to checkprotected void selectAll()
protected void selectNone()
public boolean isFieldsSelected()
public void setFieldSelected(int which,
boolean value)
which - numbervalue - flagpublic String getFieldName(int which)
which - numberpublic int getNumberOfFields()
Copyright © 2018. All rights reserved.