|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object tribble.search.disk.FDirectory
File directory searcher.
FFile
Field Summary | |
protected java.io.File |
m_path
Directory pathname. |
static int |
SERIES
Series number. |
Constructor Summary | |
FDirectory()
Default constructor. |
Method Summary | |
void |
close()
Close this directory searcher. |
DocumentI |
create(java.lang.String name,
boolean append)
Create a new file entry for this directory searcher. |
boolean |
createSupported()
Determine if new file entries can be created by this searcher. |
java.util.Enumeration |
find(DocumentFilterI filt)
Retrieve file entries from this directory matching given search criteria. |
void |
initialize(java.util.Hashtable parms)
Initialize this directory searcher. |
void |
open(java.lang.String path)
Open a given pathname for this directory searcher. |
void |
open(java.net.URL path)
Open a given URL for this directory searcher. |
boolean |
outputSupported()
Determine if 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.io.File m_path
Constructor Detail |
public FDirectory()
Method Detail |
public void initialize(java.util.Hashtable parms)
Note: This method does not actually do anything.
initialize
in interface DocumentSearcherI
parms
- A table containing name/value pairs with which to initialize this
directory searcher. This can 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 directory to open and search.
This name must specify a directory 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 directory, or if it is malformed, or if some other error occurs.DocumentSearcherI.close()
,
DocumentSearcherI.initialize(java.util.Hashtable)
public void open(java.net.URL path) throws java.io.IOException
path
- A URL specifying the location of the directory to open and search.
This URL must specify a directory filename on the local machine, and must
begin with the substring "file://".
java.net.MalformedURLException
- Thrown if the specified URL is malformed.
java.io.IOException
- Thrown if the specified URL does not exist or is not accessible, or if it
is malformed, or if some other error occurs.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.
FIterator
object containing an enumeration of FFile
objects representing the list of directory files found by this searcher,
or null if there are no matching files 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.io.IOException
name
- The name of the new file entry to create in this directory.append
- Specifies whether or not to append written data to the end of the file.
java.lang.Exception
- Thrown if the file name is malformed, or if the file already exists, or if
some other error occurs.
java.io.IOException
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 |