collector
Class Parser

java.lang.Object
  |
  +--collector.Parser

public class Parser
extends java.lang.Object

Interfaces with parser written in Perl.


Constructor Summary
Parser()
           
 
Method Summary
static void main(java.lang.String[] args)
          Debugging.
 ContextTree makeContextTree(java.io.File file, java.lang.String baseUrl)
          Costruisce l'albero dei contesti a partire dal file temporaneo generato dal filtro perl.
 ContextTree parse(java.io.File input, java.lang.String urlBase)
           
 ContextTree parse(java.lang.String input, java.lang.String urlBase)
          Performs parsing of an HTML page.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Parser

public Parser()
Method Detail

parse

public ContextTree parse(java.lang.String input,
                         java.lang.String urlBase)
Performs parsing of an HTML page. It applies first the filters desribed in parametri.txt
Parameters:
input, - name of file containing HTML page
urlBase, - URL of base page
Returns:
the ContextTree for the page, null in case of error.

parse

public ContextTree parse(java.io.File input,
                         java.lang.String urlBase)

makeContextTree

public ContextTree makeContextTree(java.io.File file,
                                   java.lang.String baseUrl)
Costruisce l'albero dei contesti a partire dal file temporaneo generato dal filtro perl.

main

public static void main(java.lang.String[] args)
Debugging.
Parameters:
arg1 - URL or file to be parsed