|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.nutch.parse.Outlink
public class Outlink
Constructor Summary | |
---|---|
Outlink()
|
|
Outlink(String toUrl,
String anchor,
Configuration conf)
An outlink with a normalized URL. |
|
Outlink(String toUrl,
String anchor,
Configuration conf,
boolean normalize)
An outlink. |
Method Summary | |
---|---|
boolean |
equals(Object o)
|
String |
getAnchor()
|
String |
getToUrl()
|
int |
hashCode()
|
static Outlink |
read(DataInput in)
|
void |
readFields(DataInput in)
Reads the fields of this object from in . |
static void |
skip(DataInput in)
Skips over one Outlink in the input. |
String |
toString()
|
void |
write(DataOutput out)
Writes the fields of this object to out . |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Outlink()
public Outlink(String toUrl, String anchor, Configuration conf) throws MalformedURLException
toUrl
- anchor
- conf
-
MalformedURLException
public Outlink(String toUrl, String anchor, Configuration conf, boolean normalize) throws MalformedURLException
toUrl
- anchor
- conf
- normalize
- - if true, normalize the URL.
MalformedURLException
Method Detail |
---|
public void readFields(DataInput in) throws IOException
Writable
in
. For efficiency,
implementations should attempt to re-use storage in the existing object
where possible.
readFields
in interface Writable
IOException
public static void skip(DataInput in) throws IOException
IOException
public void write(DataOutput out) throws IOException
Writable
out
.
write
in interface Writable
IOException
public static Outlink read(DataInput in) throws IOException
IOException
public String getToUrl()
public String getAnchor()
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |