|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.nutch.protocol.Content
public final class Content
Field Summary | |
---|---|
static String |
DIR_NAME
|
Constructor Summary | |
---|---|
Content()
|
|
Content(String url,
String base,
byte[] content,
String contentType,
Metadata metadata,
Configuration conf)
|
|
Content(String url,
String base,
byte[] content,
String contentType,
Metadata metadata,
MimeUtil mimeTypes)
|
Method Summary | |
---|---|
boolean |
equals(Object o)
|
String |
getBaseUrl()
The base url for relative links contained in the content. |
byte[] |
getContent()
The binary content retrieved. |
String |
getContentType()
The media type of the retrieved content. |
Metadata |
getMetadata()
Other protocol-specific data. |
String |
getUrl()
The url fetched. |
static void |
main(String[] args)
|
static Content |
read(DataInput in)
|
void |
readFields(DataInput in)
|
void |
setContent(byte[] content)
|
void |
setContentType(String contentType)
|
void |
setMetadata(Metadata metadata)
Other protocol-specific data. |
String |
toString()
|
void |
write(DataOutput out)
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final String DIR_NAME
Constructor Detail |
---|
public Content()
public Content(String url, String base, byte[] content, String contentType, Metadata metadata, Configuration conf)
public Content(String url, String base, byte[] content, String contentType, Metadata metadata, MimeUtil mimeTypes)
Method Detail |
---|
public final void readFields(DataInput in) throws IOException
readFields
in interface Writable
IOException
public final void write(DataOutput out) throws IOException
write
in interface Writable
IOException
public static Content read(DataInput in) throws IOException
IOException
public String getUrl()
public String getBaseUrl()
public byte[] getContent()
public void setContent(byte[] content)
public String getContentType()
public void setContentType(String contentType)
public Metadata getMetadata()
public void setMetadata(Metadata metadata)
public boolean equals(Object o)
equals
in class Object
public String toString()
toString
in class Object
public static void main(String[] args) throws Exception
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |