public class LocalFileStatus extends java.lang.Object implements FileStatus
LocalFileStatus provides an implementation of the FileStatus
 interface for the local file system.| Constructor and Description | 
|---|
| LocalFileStatus(java.io.File f,
               FileSystem fs)Creates a  LocalFileStatusobject from a givenFileobject. | 
| Modifier and Type | Method and Description | 
|---|---|
| long | getAccessTime()Get the access time of the file. | 
| long | getBlockSize()Get the block size of the file. | 
| java.io.File | getFile() | 
| long | getLen()Return the length of this file | 
| long | getModificationTime()Get the modification time of the file. | 
| Path | getPath()Returns the corresponding Path to the FileStatus. | 
| short | getReplication()Get the replication factor of a file. | 
| boolean | isDir()Checks if this object represents a directory. | 
| java.lang.String | toString() | 
public LocalFileStatus(java.io.File f,
                       FileSystem fs)
LocalFileStatus object from a given File object.f - the File object this LocalFileStatus refers tofs - the file system the corresponding file has been read frompublic long getAccessTime()
FileStatusgetAccessTime in interface FileStatuspublic long getBlockSize()
FileStatusgetBlockSize in interface FileStatuspublic long getLen()
FileStatusgetLen in interface FileStatuspublic long getModificationTime()
FileStatusgetModificationTime in interface FileStatuspublic short getReplication()
FileStatusgetReplication in interface FileStatuspublic boolean isDir()
FileStatusisDir in interface FileStatustrue if this is a directory, false otherwisepublic Path getPath()
FileStatusgetPath in interface FileStatuspublic java.io.File getFile()
public java.lang.String toString()
toString in class java.lang.Object