net.nutch.protocol.file
Class File

java.lang.Object
  extended bynet.nutch.protocol.file.File
All Implemented Interfaces:
Protocol

public class File
extends Object
implements Protocol

File.java deals with file: scheme. Configurable parameters are defined under "FILE properties" section in ./conf/nutch-default.xml or similar.

Author:
John Xing

Field Summary
static Logger LOG
           
 
Fields inherited from interface net.nutch.protocol.Protocol
X_POINT_ID
 
Constructor Summary
File()
           
 
Method Summary
 Content getContent(String urlString)
          Returns the Content for a url.
static void main(String[] args)
          For debugging.
 void setMaxContentLength(int length)
          Set the point at which content is truncated.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOG

public static final Logger LOG
Constructor Detail

File

public File()
Method Detail

setMaxContentLength

public void setMaxContentLength(int length)
Set the point at which content is truncated.


getContent

public Content getContent(String urlString)
                   throws FileException
Description copied from interface: Protocol
Returns the Content for a url.

Specified by:
getContent in interface Protocol
Throws:
FileException

main

public static void main(String[] args)
                 throws Exception
For debugging.

Throws:
Exception


Copyright © 2004 The Nutch Organization.