| java.lang.Object com.enterprisedt.net.ftp.ServerStrings
All known Subclasses: com.enterprisedt.net.ftp.FileNotFoundStrings, com.enterprisedt.net.ftp.TransferCompleteStrings, com.enterprisedt.net.ftp.DirectoryEmptyStrings,
ServerStrings | class ServerStrings (Code) | | Manages strings that match various FTP server replies for
various situations. The strings are not exact copies of server
replies, but rather fragments that match server replies (so that
as many servers as possible can be supported). All fragments are
managed internally in upper case to make matching faster.
author: Bruce Blackshaw version: $Revision: 1.1 $ |
add | public void add(String string)(Code) | | Add a fragment to be managed
Parameters: string - new message fragment |
clearAll | public void clearAll()(Code) | | Clear all fragments being managed
|
getAll | public String[] getAll()(Code) | | Get all fragments being managed
array of management fragments |
matches | public boolean matches(String reply)(Code) | | Returns true if any fragment is found in the supplied
string.
Parameters: reply - server reply to test for matches true for a match, false otherwise |
remove | public boolean remove(String string)(Code) | | Remove a managed fragment. Only exact matches (ignoring case)
are removed
Parameters: string - string to be removed true if removed, false if not found |
size | public int size()(Code) | | Fragment count
number of fragments being managed |
|
|