org.ceryle.util
Class Sucker

java.lang.Object
  extended by org.ceryle.util.Sucker

public class Sucker
extends Object

Implements a reader to suck up a bunch of web pages.

Note: This is a temporary, experimental class.

Since:
JDK1.3
Version:
$Id: Sucker.java,v 3.5 2007-06-15 12:09:57 altheim Exp $
Author:
Murray Altheim

Constructor Summary
Sucker()
          Default constructor.
 
Method Summary
 void loadList(List list, File dir)
          Loads a List of URLs into the provided directory.
 ArrayList processList(TypedInputSource source)
          Processes the list indicated by the TypedInputSource source, returning a List of URLs.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Sucker

public Sucker()
Default constructor.

Method Detail

processList

public ArrayList processList(TypedInputSource source)
                      throws ProcessException
Processes the list indicated by the TypedInputSource source, returning a List of URLs.

Parameters:
source - the TypedInputSource list of source URLs to be parsed
Throws:
ProcessException - if any errors are encountered during processing

loadList

public void loadList(List list,
                     File dir)
              throws ProcessException
Loads a List of URLs into the provided directory. Ignored if the list is empty.

Parameters:
list - the List of URLs to load
dir - the File pointing to the destination directory
Throws:
ProcessException


The Ceryle Project. Copyright ©2001-2007 Murray Altheim, All Rights Reserved. See LICENSE included with distribution.