Public Member Functions | |
SourceRegExp (URL url) | |
Package Functions | |
abstract String | url () throws UnsupportedEncodingException |
abstract String | matcher () |
abstract void | parse (String[] matches) throws IOException |
void | buildGraph () throws IOException |
Package Attributes | |
Matcher | matcher |
Node | root |
first a web page, given by overriding url() is fetched.
the expression, which may contain paranthesised subgroups, defined by overriding matcher(), is applied to the whole pages content. then for every match parse(String[ ] matches) is called with the subgroups. Override this to build the graph via add(..).
Definition at line 28 of file SourceRegExp.java.
org.hfbk.vis.source.SourceRegExp.SourceRegExp | ( | URL | url | ) |
Definition at line 30 of file SourceRegExp.java.
abstract String org.hfbk.vis.source.SourceRegExp.url | ( | ) | throws UnsupportedEncodingException [package, pure virtual] |
override this to set URL of web page to parse
Implemented in org.hfbk.vis.source.SourceGoogle, org.hfbk.vis.source.SourceGoogleImages, org.hfbk.vis.source.SourceWikipedia, and org.hfbk.vis.source.SourceYoutube.
Referenced by org.hfbk.vis.source.SourceRegExp.buildGraph().
Here is the caller graph for this function:
abstract String org.hfbk.vis.source.SourceRegExp.matcher | ( | ) | [package, pure virtual] |
override this to regular expression to extract data
Implemented in org.hfbk.vis.source.SourceGoogle, org.hfbk.vis.source.SourceGoogleImages, org.hfbk.vis.source.SourceWikipedia, and org.hfbk.vis.source.SourceYoutube.
Referenced by org.hfbk.vis.source.SourceRegExp.buildGraph().
Here is the caller graph for this function:
abstract void org.hfbk.vis.source.SourceRegExp.parse | ( | String[] | matches | ) | throws IOException [package, pure virtual] |
override this to parse each matches subgroups
IOException |
Implemented in org.hfbk.vis.source.SourceGoogle, org.hfbk.vis.source.SourceGoogleImages, and org.hfbk.vis.source.SourceWikipedia.
Referenced by org.hfbk.vis.source.SourceRegExp.buildGraph().
Here is the caller graph for this function:
void org.hfbk.vis.source.SourceRegExp.buildGraph | ( | ) | throws IOException [package, virtual] |
Implements org.hfbk.vis.source.Source.
Reimplemented in org.hfbk.vis.source.SourceWikipedia, and org.hfbk.vis.source.SourceYoutube.
Definition at line 44 of file SourceRegExp.java.
References org.hfbk.vis.source.SourceRegExp.matcher(), org.hfbk.vis.source.SourceRegExp.parse(), org.hfbk.vis.source.Source.silent, and org.hfbk.vis.source.SourceRegExp.url().
Here is the call graph for this function:
Matcher org.hfbk.vis.source.SourceRegExp.matcher [package] |
Definition at line 32 of file SourceRegExp.java.
Node org.hfbk.vis.source.SourceRegExp.root [package] |
Definition at line 33 of file SourceRegExp.java.
Referenced by org.hfbk.vis.source.SourceWikipedia.buildGraph(), org.hfbk.vis.source.SourceYoutube.parse(), org.hfbk.vis.source.SourceGoogleImages.parse(), org.hfbk.vis.source.SourceGoogle.parse(), org.hfbk.vis.source.SourceGoogle.SourceGoogle(), org.hfbk.vis.source.SourceGoogleImages.SourceGoogleImages(), org.hfbk.vis.source.SourceWikipedia.SourceWikipedia(), and org.hfbk.vis.source.SourceYoutube.SourceYoutube().