collector
Class Parser
java.lang.Object
|
+--collector.Parser
- public class Parser
- extends java.lang.Object
Interfaces with parser written in Perl.
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 |
Parser
public Parser()
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 pageurlBase,
- 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