|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface ItemFileFactory
This interface represents a factory that can produce items from cate-
gorizable files. This interface extends the FilenameFilter,
so the factory is aware of the files that it can handle as input. Created on
January 18, 2004
| Method Summary | |
|---|---|
boolean |
accept(java.io.File dir,
java.lang.String name)
The method that must be implemented by any object that filters filenames (i.e., selects a subset of filenames from a list of filenames). |
boolean |
accept(java.util.zip.ZipFile zipFile,
java.lang.String name)
The method that must be implemented by any object that filters filenames within a ZipFile (i.e., selects a subset of filenames from
a list of filenames in a ZIP archive). |
ItemFile |
getItemFile(java.io.File file)
Get the ItemFile for the given File. |
ItemFile |
getItemFile(java.util.zip.ZipEntry entry,
java.util.zip.ZipFile zipFile)
Get the ItemFile for the given ZipEntry in
the ZipFile. |
| Method Detail |
|---|
ItemFile getItemFile(java.io.File file)
throws java.lang.IllegalArgumentException
ItemFile for the given File.
file - - the input File object that will be read to
produce the item. This value must not be null.
ItemFile for the given file.
IllegalArgumentException - if the file
is null.
java.lang.IllegalArgumentException
ItemFile getItemFile(java.util.zip.ZipEntry entry,
java.util.zip.ZipFile zipFile)
throws java.lang.IllegalArgumentException
ItemFile for the given ZipEntry in
the ZipFile.
zipEntry - - the ZipEntry that will be read to
produce the item. This value must not be null.zipFile - - the ZipFile object that contains the
ZipEntry that will produce the item. This value
must not be null.
ItemFile for the given zip file entry.
IllegalArgumentException - if the file
is null.
java.lang.IllegalArgumentException
boolean accept(java.io.File dir,
java.lang.String name)
java.io.FilenameFilter for
completeness.
accept in interface java.io.FilenameFilterdir - - the File object of the directory containing
the named file.name - - the String name of the file.
boolean accept(java.util.zip.ZipFile zipFile,
java.lang.String name)
ZipFile (i.e., selects a subset of filenames from
a list of filenames in a ZIP archive).
zipFile - - the ZipFile object that contains the
named file's entry.name - - the String name of the file.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||