|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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
Writablein. For efficiency,
implementations should attempt to re-use storage in the existing object
where possible.
readFields in interface WritableIOException
public static void skip(DataInput in)
throws IOException
IOException
public void write(DataOutput out)
throws IOException
Writableout.
write in interface WritableIOException
public static Outlink read(DataInput in)
throws IOException
IOExceptionpublic String getToUrl()
public String getAnchor()
public boolean equals(Object o)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||