public interface FileInfo
FileSelector.isSelected(FileInfo)
is invoked. This object provides information about
the file to select or deselect.| Modifier and Type | Method and Description |
|---|---|
InputStream |
getContents()
Creates an
InputStream, which may be used to read
the files contents. |
String |
getName()
Returns the resources name, which may include path components,
like directory names, or something like that.
|
boolean |
isDirectory()
Returns, whether the
FileInfo refers to a directory. |
boolean |
isFile()
Returns, whether the
FileInfo refers to a file. |
String getName()
File.pathSeparatorInputStream getContents() throws 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.IOExceptionboolean isFile()
FileInfo refers to a file.boolean isDirectory()
FileInfo refers to a directory.Copyright © 2001-2014 Codehaus. All Rights Reserved.