|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectnet.nutch.io.VersionedWritable
net.nutch.protocol.Content
| Field Summary | |
static String |
DIR_NAME
|
| Constructor Summary | |
Content()
|
|
Content(String url,
String base,
byte[] content,
String contentType,
Properties metadata)
|
|
| Method Summary | |
boolean |
equals(Object o)
|
String |
get(String name)
Return the value of a metadata property. |
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. |
Properties |
getMetadata()
Other protocol-specific data. |
String |
getUrl()
The url fetched. |
byte |
getVersion()
Return the version number of the current implementation. |
static void |
main(String[] argv)
|
static Content |
read(DataInput in)
|
void |
readFields(DataInput in)
Reads the fields of this object from in. |
void |
setContent(byte[] content)
|
void |
setContentType(String contentType)
|
String |
toString()
|
void |
write(DataOutput out)
Writes the fields of this object to 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,
Properties metadata)
| Method Detail |
public byte getVersion()
VersionedWritable
getVersion in class VersionedWritable
public final 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 WritablereadFields in class VersionedWritableIOException
public final void write(DataOutput out)
throws IOException
Writableout.
write in interface Writablewrite in class VersionedWritableIOException
public static Content read(DataInput in)
throws IOException
IOExceptionpublic String getUrl()
public String getBaseUrl()
public byte[] getContent()
public void setContent(byte[] content)
public String getContentType()
http://www.iana.org/assignments/media-types/public void setContentType(String contentType)
public Properties getMetadata()
public String get(String name)
public boolean equals(Object o)
public String toString()
public static void main(String[] argv)
throws Exception
Exception
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||