net.web
Class HTMLTableParser
java.lang.Object
javax.swing.text.html.HTMLEditorKit.ParserCallback
net.web.HTMLTableParser
public class HTMLTableParser
- extends javax.swing.text.html.HTMLEditorKit.ParserCallback
Copyright 2005, DocJava, Inc.
User: dlyon
Date: Sep 21, 2006
Time: 3:19:08 PM
Convert a table of HTML tags into CSV format.
Makes processing and screen scraping a lot easier!
Fields inherited from class javax.swing.text.html.HTMLEditorKit.ParserCallback |
IMPLIED |
Constructor Summary |
HTMLTableParser(java.lang.StringBuffer buf,
boolean keepUrls)
|
Method Summary |
void |
handleEndTag(javax.swing.text.html.HTML.Tag t,
int pos)
|
void |
handleText(char[] data,
int pos)
|
void |
setKeepUrls(boolean b)
If true, the urls will appear at the end of the line |
Methods inherited from class javax.swing.text.html.HTMLEditorKit.ParserCallback |
flush, handleComment, handleEndOfLineString, handleError, handleSimpleTag, handleStartTag |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HTMLTableParser
public HTMLTableParser(java.lang.StringBuffer buf,
boolean keepUrls)
handleEndTag
public void handleEndTag(javax.swing.text.html.HTML.Tag t,
int pos)
- Overrides:
handleEndTag
in class javax.swing.text.html.HTMLEditorKit.ParserCallback
setKeepUrls
public void setKeepUrls(boolean b)
- If true, the urls will appear at the end of the line
- Parameters:
b
- - defaults to false
handleText
public void handleText(char[] data,
int pos)
- Overrides:
handleText
in class javax.swing.text.html.HTMLEditorKit.ParserCallback