finance.google
Class GoogleSummaryParser
java.lang.Object
javax.swing.text.html.HTMLEditorKit.ParserCallback
finance.google.GoogleSummaryParser
public class GoogleSummaryParser
- extends javax.swing.text.html.HTMLEditorKit.ParserCallback
Fields inherited from class javax.swing.text.html.HTMLEditorKit.ParserCallback |
IMPLIED |
Method Summary |
static java.net.URL |
getUrl(java.lang.String ticker)
|
GoogleSummaryData |
getValue()
|
void |
handleEndTag(javax.swing.text.html.HTML.Tag endTag,
int pos)
|
void |
handleStartTag(javax.swing.text.html.HTML.Tag startTag,
javax.swing.text.MutableAttributeSet a,
int pos)
|
void |
handleText(char[] text,
int position)
|
static void |
main(java.lang.String[] args)
|
Methods inherited from class javax.swing.text.html.HTMLEditorKit.ParserCallback |
flush, handleComment, handleEndOfLineString, handleError, handleSimpleTag |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GoogleSummaryParser
public GoogleSummaryParser(java.lang.String tickerSymbol)
throws java.io.IOException,
javax.swing.text.BadLocationException
- Throws:
java.io.IOException
javax.swing.text.BadLocationException
getValue
public GoogleSummaryData getValue()
handleEndTag
public void handleEndTag(javax.swing.text.html.HTML.Tag endTag,
int pos)
- Overrides:
handleEndTag
in class javax.swing.text.html.HTMLEditorKit.ParserCallback
handleStartTag
public void handleStartTag(javax.swing.text.html.HTML.Tag startTag,
javax.swing.text.MutableAttributeSet a,
int pos)
- Overrides:
handleStartTag
in class javax.swing.text.html.HTMLEditorKit.ParserCallback
handleText
public void handleText(char[] text,
int position)
- Overrides:
handleText
in class javax.swing.text.html.HTMLEditorKit.ParserCallback
getUrl
public static java.net.URL getUrl(java.lang.String ticker)
throws java.net.MalformedURLException
- Throws:
java.net.MalformedURLException
main
public static void main(java.lang.String[] args)
throws java.io.IOException,
javax.swing.text.BadLocationException
- Throws:
java.io.IOException
javax.swing.text.BadLocationException