org.openprivacy.reptile
Class RSSWebsiteFilterSerializer

java.lang.Object
  |
  +--org.openprivacy.reptile.RSSWebsiteFilterSerializer

public class RSSWebsiteFilterSerializer
extends java.lang.Object

An HTML -> RSS serializer that takes a given HTML file and filters out all URLs that begin with a date such as /2002. Only these URLs are considered.

Author:
Kevin A. Burton

Constructor Summary
RSSWebsiteFilterSerializer(java.lang.String resource)
          Create a new RSSWebsiteFilterSerializer instance.
 
Method Summary
 java.lang.String[] getAnchors(java.lang.String html)
          Get all links for this content.
 java.lang.String getBase()
           
 java.lang.String getRSS()
          Get the resource as an RSS stream with mod_content
static void main(java.lang.String[] args)
          Handle operations from the command line.
 void parse()
          Parse this channel.
 void setBase(java.lang.String base)
          Set the base for this so that we know what to look for.
static void syntax()
          Display syntax.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RSSWebsiteFilterSerializer

public RSSWebsiteFilterSerializer(java.lang.String resource)
Create a new RSSWebsiteFilterSerializer instance.

Method Detail

parse

public void parse()
           throws java.lang.Exception
Parse this channel. This should be called before any other methods that return any data.

java.lang.Exception

getAnchors

public java.lang.String[] getAnchors(java.lang.String html)
                              throws java.lang.Exception
Get all links for this content. Links are denoted as all links

java.lang.Exception

getRSS

public java.lang.String getRSS()
                        throws java.lang.Exception
Get the resource as an RSS stream with mod_content

java.lang.Exception

setBase

public void setBase(java.lang.String base)
Set the base for this so that we know what to look for.


getBase

public java.lang.String getBase()

syntax

public static void syntax()
Display syntax.


main

public static void main(java.lang.String[] args)
Handle operations from the command line.