Save This Page
Home » nutch-1.0 » org.apache.nutch » protocol » [javadoc | source]
org.apache.nutch.protocol
public final class: Content [javadoc | source]
java.lang.Object
   org.apache.nutch.protocol.Content

All Implemented Interfaces:
    org.apache.hadoop.io.Writable

Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Field Summary
public static final  String DIR_NAME     
Constructor:
 public Content() 
 public Content(String url,
    String base,
    byte[] content,
    String contentType,
    Metadata metadata,
    Configuration conf) 
Method from org.apache.nutch.protocol.Content Summary:
equals,   getBaseUrl,   getContent,   getContentType,   getMetadata,   getUrl,   main,   read,   readFields,   setContent,   setContentType,   setMetadata,   toString,   write
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.nutch.protocol.Content Detail:
 public boolean equals(Object o) 
 public String getBaseUrl() 
    The base url for relative links contained in the content. Maybe be different from url if the request redirected.
 public byte[] getContent() 
    The binary content retrieved.
 public String getContentType() 
    The media type of the retrieved content.
 public Metadata getMetadata() 
    Other protocol-specific data.
 public String getUrl() 
    The url fetched.
 public static  void main(String[] argv) throws Exception 
 public static Content read(DataInput in) throws IOException 
 public final  void readFields(DataInput in) throws IOException 
 public  void setContent(byte[] content) 
 public  void setContentType(String contentType) 
 public  void setMetadata(Metadata metadata) 
    Other protocol-specific data.
 public String toString() 
 public final  void write(DataOutput out) throws IOException