public class FTP5250Prot extends Object
| Constructor and Description |
|---|
FTP5250Prot(tnvt v) |
| Modifier and Type | Method and Description |
|---|---|
void |
addFTPStatusListener(FTPStatusListener listener)
Add a FTPStatusListener to the listener list.
|
boolean |
connect(String host,
int port)
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
|
protected boolean |
getFile(String remoteFile,
String localFile)
Transfer the file information to an output file
|
protected boolean |
getFileInfo(String tFile,
boolean useInternal)
Retrieves the File Field Definitions and Member information for the remote
file to be transferred
|
int |
getFileSize()
Convenience method to return the file size of the file and member that is
being transferred
|
String |
getFullFileName(String tFile)
Convenience method to return the file name and member that is being
transferred
|
protected boolean |
getMbrInfo(String file,
String member)
Executes the command to obtain the member information of the remote 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
|
protected void |
printDirListing()
Print out the remote directory of the
not used right now but maybe in the future to obtain a list of
files to select for download
|
protected boolean |
printHelp()
Print output of the help command
Not used just a test method for me
|
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 |
setAborted()
Abort the current file transfer
|
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 FTP5250Prot(tnvt v)
public void setOutputFilter(OutputFilterInterface o)
public void setDecimalChar(char dec)
public boolean connect(String host, int port)
host - a hostnameport - a port to connect topublic 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 userprotected void printDirListing()
public boolean isFieldSelected(int which)
which - number of fieldprotected void selectAll()
protected void selectNone()
public boolean isFieldsSelected()
public void setFieldSelected(int which,
boolean value)
which - field numbervalue - flagpublic String getFieldName(int which)
which - field numberpublic int getNumberOfFields()
protected boolean getFileInfo(String tFile, boolean useInternal)
tFile - fileuseInternal - flagprotected boolean getMbrInfo(String file, String member)
file - filemember - memberpublic String getFullFileName(String tFile)
tFile - filepublic int getFileSize()
protected boolean printHelp()
protected boolean getFile(String remoteFile, String localFile)
remoteFile - filelocalFile - filepublic void setAborted()
Copyright © 2018. All rights reserved.