|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface FileInfo
An object implementing this interface is passed to the
file selector when the method
FileSelector.isSelected(FileInfo)
is invoked. This object provides information about
the file to select or deselect.
Method Summary | |
---|---|
java.io.InputStream |
getContents()
Creates an InputStream , which may be used to read
the files contents. |
java.lang.String |
getName()
Returns the files name. |
boolean |
isDirectory()
Returns, whether the FileInfo refers to a directory. |
boolean |
isFile()
Returns, whether the FileInfo refers to a file. |
Method Detail |
---|
java.lang.String getName()
org/codehaus/plexus/components/io/fileselectors/FileSelector.java
.
java.io.InputStream getContents() throws java.io.IOException
InputStream
, which may be used to read
the files contents. This is useful, if the file selector
comes to a decision based on the files contents.
java.io.IOException
boolean isFile()
FileInfo
refers to a file.
boolean isDirectory()
FileInfo
refers to a directory.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |