finance.edgar
Class ToParser
java.lang.Object
   javax.swing.text.html.HTMLEditorKit.ParserCallback
javax.swing.text.html.HTMLEditorKit.ParserCallback
       finance.edgar.ToParser
finance.edgar.ToParser
- public class ToParser 
- extends javax.swing.text.html.HTMLEditorKit.ParserCallback
 
| Fields inherited from class javax.swing.text.html.HTMLEditorKit.ParserCallback | 
| IMPLIED | 
 
| Constructor Summary | 
| ToParser(java.net.URL url)
 | 
 
| Method Summary | 
|  java.net.URL | getBase()
 | 
|  java.net.URL[] | getURLs()sorts the links and removes the duplicates.
 | 
|  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)
 | 
 
| 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 | 
 
ToParser
public ToParser(java.net.URL url)
         throws java.io.IOException,
                javax.swing.text.BadLocationException
- Throws:
- java.io.IOException
- javax.swing.text.BadLocationException
getURLs
public java.net.URL[] getURLs()
- sorts the links and removes the duplicates.
 
- 
- Returns:
- properly formatted absolute urls, no e-mails, no javascript.
 
handleStartTag
public void handleStartTag(javax.swing.text.html.HTML.Tag startTag,
                           javax.swing.text.MutableAttributeSet a,
                           int pos)
- 
- Overrides:
- handleStartTagin class- javax.swing.text.html.HTMLEditorKit.ParserCallback
 
- 
 
handleText
public void handleText(char[] text,
                       int position)
- 
- Overrides:
- handleTextin class- javax.swing.text.html.HTMLEditorKit.ParserCallback
 
- 
 
handleEndTag
public void handleEndTag(javax.swing.text.html.HTML.Tag endTag,
                         int pos)
- 
- Overrides:
- handleEndTagin class- javax.swing.text.html.HTMLEditorKit.ParserCallback
 
- 
 
getBase
public java.net.URL getBase()
-