|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.io.File
org.apache.nutch.ndfs.NDFSFile
NDFSFile is a traditional java File that's been annotated with some extra information.
Field Summary | |
static String |
NDFS_FILE_SEPARATOR
Separator used in NDFS filenames. |
Fields inherited from class java.io.File |
pathSeparator, pathSeparatorChar, separator, separatorChar |
Constructor Summary | |
NDFSFile(NDFSFileInfo info)
|
Method Summary | |
boolean |
canRead()
A number of File methods are unsupported in this subclass |
boolean |
canWrite()
|
boolean |
createNewFile()
|
boolean |
delete()
|
void |
deleteOnExit()
|
long |
getContentsLength()
And add a few extras |
static String |
getNDFSParent(String path)
Retrieving parent path from NDFS path string |
boolean |
isDirectory()
We need to reimplement some of them |
boolean |
isFile()
|
boolean |
isHidden()
|
long |
length()
|
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 |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final String NDFS_FILE_SEPARATOR
Constructor Detail |
public NDFSFile(NDFSFileInfo info)
Method Detail |
public boolean canRead()
public boolean canWrite()
public boolean createNewFile()
public boolean delete()
public void deleteOnExit()
public boolean isHidden()
public boolean isDirectory()
public boolean isFile()
public long length()
public long getContentsLength()
public static String getNDFSParent(String path)
path
- - NDFS path
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |