|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object tribble.search.ftp.FtpSearcher
FTP file searcher.
FtpFile
Field Summary | |
protected java.lang.String |
m_hostName
FTP host name. |
protected java.lang.String |
m_password
FTP password. |
protected java.lang.String |
m_root
Root remote directory. |
protected int |
m_serialNo
Open counter. |
protected java.lang.String |
m_userName
FTP user name. |
static int |
SERIES
Series number. |
Constructor Summary | |
FtpSearcher()
Default constructor. |
Method Summary | |
void |
close()
Close this FTP file searcher. |
DocumentI |
create(java.lang.String name,
boolean append)
Create a new file entry in this FTP file searcher. |
boolean |
createSupported()
Determine if new FTP file entries can be created by this searcher. |
java.util.Enumeration |
find(DocumentFilterI filt)
Retrieve file entries from this FTP file matching given search criteria. |
void |
initialize(java.util.Hashtable parms)
Initialize this searcher. |
void |
open(java.lang.String path)
Open a given pathname for this FTP file searcher. |
boolean |
outputSupported()
Determine if FTP file entries can be written to this searcher. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int SERIES
protected java.lang.String m_hostName
protected java.lang.String m_userName
protected java.lang.String m_password
protected java.lang.String m_root
protected int m_serialNo
open(java.lang.String)
is called. It is
used by FtpFile
objects to detect whether or not they have become
invalidated.
Constructor Detail |
public FtpSearcher()
Method Detail |
public void initialize(java.util.Hashtable parms)
+INCOMPLETE
initialize
in interface DocumentSearcherI
parms
- A table containing name/value pairs with which to initialize this FTP file
searcher. This must not be null.DocumentSearcherI.open(java.lang.String)
public void open(java.lang.String path) throws java.io.IOException
open
in interface DocumentSearcherI
path
- A pathname specifying the location of a FTP file to open and search.
This name must specify a filename on the local machine.
java.io.IOException
- Thrown if the specified path does not exist or is not accessible, or if it
is not a regular file, or if it is malformed, or if some other error
occurs.DocumentSearcherI.close()
,
DocumentSearcherI.initialize(java.util.Hashtable)
public void close() throws java.io.IOException
close
in interface DocumentSearcherI
java.io.IOException
- Thrown if an error occurs.DocumentSearcherI.open(java.lang.String)
public java.util.Enumeration find(DocumentFilterI filt) throws java.io.IOException, java.lang.Exception
find
in interface DocumentSearcherI
filt
- A filter specifying file searching criteria. This can be null, in which
case all possible file entries for this searcher are returned.
FtpIterator
object containing an enumeration of FtpFile
objects representing the list of file entries found by this searcher, or
null if there are no matching file entries to be found.
java.io.IOException
- Thrown if the specified criteria are malformed, or if some other error
occurs.
java.lang.Exception
- Thrown if the specified criteria are malformed, or if some other error
occurs.public DocumentI create(java.lang.String name, boolean append) throws java.lang.UnsupportedOperationException
name
- The name of the new file entry to create in this FTP file.append
- Specifies whether or not to append written data to the end of the file.
java.lang.UnsupportedOperationException
- Thrown if this method is not supported for this searcher.public boolean createSupported()
public boolean outputSupported()
outputSupported
in interface DocumentSearcherI
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |