org.apache.nutch.parse
Class Outlink
java.lang.Object
org.apache.nutch.parse.Outlink
- All Implemented Interfaces:
- org.apache.hadoop.io.Writable
public class Outlink
- extends Object
- implements org.apache.hadoop.io.Writable
Outlink
public Outlink()
Outlink
public Outlink(String toUrl,
String anchor)
throws MalformedURLException
- Throws:
MalformedURLException
readFields
public void readFields(DataInput in)
throws IOException
- Specified by:
readFields
in interface org.apache.hadoop.io.Writable
- Throws:
IOException
skip
public static void skip(DataInput in)
throws IOException
- Skips over one Outlink in the input.
- Throws:
IOException
write
public void write(DataOutput out)
throws IOException
- Specified by:
write
in interface org.apache.hadoop.io.Writable
- Throws:
IOException
read
public static Outlink read(DataInput in)
throws IOException
- Throws:
IOException
getToUrl
public String getToUrl()
getAnchor
public String getAnchor()
equals
public boolean equals(Object o)
- Overrides:
equals
in class Object
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2013 The Apache Software Foundation