public static class URLFileSystem.FileInfo
extends java.lang.Object
FileInfo class encapsulates the information
  describing files returned by the URLFileSystem.ls(URL) and 
 URLFileSystem.ls(URL, URLFilter) methods.
  The information contained by each FileInfo object is
  current only as of the time the object was constructed.  The
  underlying fields of the FileInfo object will contain
  out of date information if the underlying file system object is
  modified after the FileInfo object has been constructed.
| Modifier and Type | Field and Description | 
|---|---|
| protected static int | ATTR_DIRECTORYBit indicating whether the file is a directory | 
| protected static int | ATTR_HIDDENBit indicating whether the file is a hidden file | 
| protected static int | ATTR_REGULARBit indicating whether the file is a regular file | 
| protected int | attributesThe bits representing the abstract attributes of the file. | 
| protected long | lastModifiedThe time that the file was last modified. | 
| protected long | lengthThe length of the file. | 
| protected java.net.URL | urlThe  URLof the file. | 
| Constructor and Description | 
|---|
| FileInfo(java.io.File file,
        int attributes,
        long lastModified,
        long length)Constructs a  FileInfoobject given the specified
  initial starting field values. | 
| FileInfo(java.io.File parent,
        java.lang.String name,
        int attributes,
        long lastModified,
        long length)Constructs a  FileInfoobject given the specified
  initial starting field values. | 
| FileInfo(java.lang.String path,
        int attributes,
        long lastModified,
        long length)Constructs a  FileInfoobject given the specified
  initial starting field values. | 
| FileInfo(java.lang.String parent,
        java.lang.String name,
        int attributes,
        long lastModified,
        long length)Constructs a  FileInfoobject given the specified
  initial starting field values. | 
| FileInfo(java.net.URL url)Constructs a  FileInfoobject from the specifiedURL. | 
| FileInfo(java.net.URL url,
        int attributes,
        long lastModified,
        long length)Constructs a  FileInfoobject given the specified
  initial starting field values. | 
| Modifier and Type | Method and Description | 
|---|---|
| java.net.URL | getURL()Returns the  URLof the file or directory denoted by this
  object. | 
| boolean | isDirectory()Returns whether the file was a directory at the time this object
  was constructed. | 
| boolean | isFile()Returns whether the file was a normal file at the time this object
  was constructed. | 
| boolean | isHidden()Returns whether the file was a hidden file at the time this object
  was constructed. | 
| long | lastModified()Returns the time that the file was last modified, at the time this
  object was constructed. | 
| long | length()Returns the length of the file, in bytes, at the time this object
  was constructed. | 
protected static final int ATTR_DIRECTORY
protected static final int ATTR_REGULAR
protected static final int ATTR_HIDDEN
protected java.net.URL url
URL of the file.protected int attributes
protected long lastModified
protected long length
public FileInfo(java.net.URL url)
FileInfo object from the specified URL.  The fields of the object are populated by querying the
  respective URLFileSystem methods for the given
  URL.
  NOTE: This constructor exists merely for
  convenience, and should not be generally used, as it is the least
  performant way to construct a FileInfo object.
public FileInfo(java.io.File parent,
                java.lang.String name,
                int attributes,
                long lastModified,
                long length)
FileInfo object given the specified
  initial starting field values.parent - The parent directory File.name - The name of the file.attributes - The abstract attributes of the file.lastModified - The time that the file was last modified.length - The length of the file.public FileInfo(java.lang.String parent,
                java.lang.String name,
                int attributes,
                long lastModified,
                long length)
FileInfo object given the specified
  initial starting field values.parent - The parent directory path.name - The name of the file.attributes - The abstract attributes of the file.lastModified - The time that the file was last modified.length - The length of the file.public FileInfo(java.io.File file,
                int attributes,
                long lastModified,
                long length)
FileInfo object given the specified
  initial starting field values.file - The File.attributes - The abstract attributes of the file.lastModified - The time that the file was last modified.length - The length of the file.public FileInfo(java.lang.String path,
                int attributes,
                long lastModified,
                long length)
FileInfo object given the specified
  initial starting field values.path - The path of the file.attributes - The abstract attributes of the file.lastModified - The time that the file was last modified.length - The length of the file.public FileInfo(java.net.URL url,
                int attributes,
                long lastModified,
                long length)
FileInfo object given the specified
  initial starting field values.url - The URL of the file.attributes - The abstract attributes of the file.lastModified - The time that the file was last modified.length - The length of the file.public java.net.URL getURL()
URL of the file or directory denoted by this
  object.public boolean isDirectory()
URLFileSystem.isDirectory(URL)public boolean isFile()
URLFileSystem.isRegularFile(URL)public boolean isHidden()
URLFileSystem.isHidden(URL)public long lastModified()
URLFileSystem.lastModified(URL)public long length()
URLFileSystem.getLength(URL)