| Constructor and Description |
|---|
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.
|
| Modifier and Type | Method and Description |
|---|---|
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. |
public Outlink()
public Outlink(String toUrl, String anchor, Configuration conf) throws MalformedURLException
toUrl - anchor - conf - MalformedURLExceptionpublic Outlink(String toUrl, String anchor, Configuration conf, boolean normalize) throws MalformedURLException
toUrl - anchor - conf - normalize - - if true, normalize the URL.MalformedURLExceptionpublic 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 WritableIOExceptionpublic static void skip(DataInput in) throws IOException
IOExceptionpublic void write(DataOutput out) throws IOException
Writableout.write in interface WritableIOExceptionpublic static Outlink read(DataInput in) throws IOException
IOExceptionpublic String getToUrl()
public String getAnchor()
Copyright © 2007, 2014, Oracle and/or its affiliates. All rights reserved.