|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object pt.tumba.geoclass.CommonSites
public final class CommonSites
CommonSites
is a simple URL to geographic scope lookup table,
using regular expressions to match URL paths.
Map
Constructor Summary | |
---|---|
CommonSites(java.lang.String dictionaryFileName)
Constructor for CommonSites |
|
CommonSites(java.lang.String dictionaryFileName,
boolean compression)
Constructor for CommonSites. |
Method Summary | |
---|---|
void |
cleanup()
Cleanup the lookup table. |
Node[] |
find(java.lang.String url)
Search the lookup table and return the scope for a given URL. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CommonSites(java.lang.String dictionaryFileName) throws java.lang.Exception
dictionaryFileName
- The File
path leading up to the lookup dictionary.
java.lang.Exception
public CommonSites(java.lang.String dictionaryFileName, boolean compression) throws java.lang.Exception
dictionaryFileName
- The File
path leading up to the lookup dictionary.compression
- If true, the dictionary file is compressed with the GZIP algorithm, and if false,
the file is a normal text document.
java.lang.Exception
Method Detail |
---|
public Node[] find(java.lang.String url)
url
- An URL.
public void cleanup()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |