net.nutch.ndfs
Class NDFSFile
java.lang.Object
java.io.File
net.nutch.ndfs.NDFSFile
- All Implemented Interfaces:
- Comparable, Serializable
- public class NDFSFile
- extends File
NDFSFile is a traditional java File that's been annotated with
some extra information.
- Author:
- Mike Cafarella
- See Also:
- Serialized Form
Methods inherited from class java.io.File |
compareTo, compareTo, createTempFile, createTempFile, equals, exists, getAbsoluteFile, getAbsolutePath, getCanonicalFile, getCanonicalPath, getName, getParent, getParentFile, getPath, hashCode, isAbsolute, lastModified, list, list, listFiles, listFiles, listFiles, listRoots, mkdir, mkdirs, renameTo, setLastModified, setReadOnly, toString, toURI, toURL |
NDFSFile
public NDFSFile(NDFSFileInfo info)
canRead
public boolean canRead()
- A number of File methods are unsupported in this subclass
canWrite
public boolean canWrite()
createNewFile
public boolean createNewFile()
delete
public boolean delete()
deleteOnExit
public void deleteOnExit()
isHidden
public boolean isHidden()
isDirectory
public boolean isDirectory()
- We need to reimplement some of them
isFile
public boolean isFile()
length
public long length()
getContentsLength
public long getContentsLength()
- And add a few extras
Copyright © 2005 The Nutch Organization.