org.apache.nutch.ndfs
Class NDFSFileInfo
java.lang.Object
org.apache.nutch.ndfs.NDFSFileInfo
- All Implemented Interfaces:
- Writable
- public class NDFSFileInfo
- extends Object
- implements Writable
NDFSFileInfo tracks info about remote files, including
name, size, etc.
- Author:
- Mike Cafarella
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NDFSFileInfo
public NDFSFileInfo()
NDFSFileInfo
public NDFSFileInfo(UTF8 path,
long len,
long contentsLen,
boolean isDir)
getPath
public String getPath()
getName
public String getName()
getParent
public String getParent()
getLen
public long getLen()
getContentsLen
public long getContentsLen()
isDir
public boolean isDir()
write
public void write(DataOutput out)
throws IOException
- Description copied from interface:
Writable
- Writes the fields of this object to
out
.
- Specified by:
write
in interface Writable
- Throws:
IOException
readFields
public void readFields(DataInput in)
throws IOException
- Description copied from interface:
Writable
- Reads the fields of this object from
in
. For efficiency,
implementations should attempt to re-use storage in the existing object
where possible.
- Specified by:
readFields
in interface Writable
- Throws:
IOException
Copyright © 2006 The Apache Software Foundation