org.vivoweb.harvester.fetch
Class OAIFetch

java.lang.Object
  extended by org.vivoweb.harvester.fetch.OAIFetch

public class OAIFetch
extends java.lang.Object

Class for harvesting from OAI Data Sources

Author:
Dale Scheppler, Christopher Haines (hainesc@ctrip.ufl.edu)

Constructor Summary
OAIFetch(ArgList argList)
          Constructor
OAIFetch(java.lang.String[] args)
          Constructor
OAIFetch(java.lang.String address, java.io.OutputStream outStream)
          Constuctor
OAIFetch(java.lang.String address, java.lang.String startDate, java.lang.String endDate, java.io.OutputStream outStream)
          Constructor
 
Method Summary
 void execute()
          Executes the task
static void main(java.lang.String... args)
          Main method
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OAIFetch

public OAIFetch(java.lang.String address,
                java.io.OutputStream outStream)
Constuctor

Parameters:
address - The website address of the repository, without http://
outStream - The output stream to write to

OAIFetch

public OAIFetch(java.lang.String address,
                java.lang.String startDate,
                java.lang.String endDate,
                java.io.OutputStream outStream)
Constructor

Parameters:
address - The website address of the repository, without http://
startDate - The date at which to begin fetching records, format and time resolution depends on repository.
endDate - The date at which to stop fetching records, format and time resolution depends on repository.
outStream - The output stream to write to

OAIFetch

public OAIFetch(java.lang.String[] args)
         throws java.io.IOException
Constructor

Parameters:
args - command line arguments
Throws:
java.io.IOException - error connecting to record handler

OAIFetch

public OAIFetch(ArgList argList)
         throws java.io.IOException
Constructor

Parameters:
argList - parsed argument list
Throws:
java.io.IOException - error connecting to record handler
Method Detail

execute

public void execute()
             throws java.io.IOException
Executes the task

Throws:
java.io.IOException - error getting recrords

main

public static void main(java.lang.String... args)
Main method

Parameters:
args - command line arguments