com.macmillan.nmeyers
Class FileStatus

java.lang.Object
  |
  +--java.io.File
        |
        +--com.macmillan.nmeyers.FileStatus

public class FileStatus
extends java.io.File

Provide access to POSIX-specific information about the file system. This class extends File to obtain POSIX-specific information that is not supported by Java.

See Also:
Serialized Form

Field Summary
 java.lang.String gid
          File group.
 int mode
          File mode.
 java.lang.String target
          Symbolic link target.
 java.lang.String uid
          File owner.
 
Fields inherited from class java.io.File
pathSeparator, pathSeparatorChar, separator, separatorChar
 
Constructor Summary
FileStatus(java.io.File dir, java.lang.String name)
          This class' extension of the File constructor with the same signature.
FileStatus(java.lang.String path)
          This class' extension of the File constructor with the same signature.
FileStatus(java.lang.String path, java.lang.String name)
          This class' extension of the File constructor with the same signature.
 
Method Summary
static void main(java.lang.String[] argv)
          This provides a small test program that queries and reports information about files specified on the command line.
 
Methods inherited from class java.io.File
canRead, canWrite, compareTo, compareTo, createNewFile, createTempFile, createTempFile, delete, deleteOnExit, equals, exists, getAbsoluteFile, getAbsolutePath, getCanonicalFile, getCanonicalPath, getName, getParent, getParentFile, getPath, hashCode, isAbsolute, isDirectory, isFile, isHidden, lastModified, length, list, list, listFiles, listFiles, listFiles, listRoots, mkdir, mkdirs, renameTo, setLastModified, setReadOnly, toString, toURL
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

uid

public java.lang.String uid
File owner. Value is the owner's UID in textual form.

gid

public java.lang.String gid
File group. Value is the file's GID in textual form.

mode

public int mode
File mode. Value is the POSIX permissions bits.

target

public java.lang.String target
Symbolic link target. If the file is a symbolic link, this will be non-null and contain the name of the link target.
Constructor Detail

FileStatus

public FileStatus(java.lang.String path)
This class' extension of the File constructor with the same signature.

FileStatus

public FileStatus(java.lang.String path,
                  java.lang.String name)
This class' extension of the File constructor with the same signature.

FileStatus

public FileStatus(java.io.File dir,
                  java.lang.String name)
This class' extension of the File constructor with the same signature.
Method Detail

main

public static void main(java.lang.String[] argv)
This provides a small test program that queries and reports information about files specified on the command line.