org.apache.nutch.crawl
Class Inlink
java.lang.Object
org.apache.nutch.crawl.Inlink
- All Implemented Interfaces:
- Writable
public class Inlink
- extends Object
- implements Writable
Inlink
public Inlink()
Inlink
public Inlink(String fromUrl,
String anchor)
readFields
public void readFields(DataInput in)
throws IOException
- Specified by:
readFields
in interface Writable
- Throws:
IOException
skip
public static void skip(DataInput in)
throws IOException
- Skips over one Inlink in the input.
- Throws:
IOException
write
public void write(DataOutput out)
throws IOException
- Specified by:
write
in interface Writable
- Throws:
IOException
read
public static Inlink read(DataInput in)
throws IOException
- Throws:
IOException
getFromUrl
public String getFromUrl()
getAnchor
public String getAnchor()
equals
public boolean equals(Object o)
- Overrides:
equals
in class Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2011 The Apache Software Foundation