|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--net.aerith.misao.util.URLSet
The URLSet
represents a set of URLs. It has functions
such as to check existence of files in any directory in this set.
Field Summary | |
protected boolean |
accept_gzipped
True when to accept the gzipped files. |
protected boolean |
ignore_cases
True when to ignore cases. |
protected java.util.Vector |
list
The list of URLs. |
Constructor Summary | |
URLSet()
Constructs an empty URLSet . |
Method Summary | |
void |
acceptGzipped(boolean flag)
Sets the flag to accept gzipped files when checks the existence of file. |
void |
addURL(java.net.URL new_url)
Adds an URL. |
boolean |
empty()
True if no URL is set. |
java.net.URL |
exists()
Checks if any of the URLs in this set exists. |
java.net.URL |
existsFile(java.lang.String filename)
Checks if the specified file exists in any directory in this set. |
private java.net.URL |
existsGzipped(java.net.URL url)
Checks if the gzipped file of the specified URL exists. |
void |
ignoreCases(boolean flag)
Sets the flag to ignore cases when checks the existence of file. |
Methods inherited from class java.lang.Object |
|
Field Detail |
protected java.util.Vector list
protected boolean ignore_cases
protected boolean accept_gzipped
Constructor Detail |
public URLSet()
URLSet
.Method Detail |
public void addURL(java.net.URL new_url)
new_url
- the new URL to add.public boolean empty()
public void ignoreCases(boolean flag)
flag
- true when to ignore cases.public void acceptGzipped(boolean flag)
flag
- true when to accept gzipped files.public java.net.URL exists() throws java.io.FileNotFoundException
public java.net.URL existsFile(java.lang.String filename) throws java.io.FileNotFoundException
filename
- the file name to check.private java.net.URL existsGzipped(java.net.URL url) throws java.io.FileNotFoundException
url
- the URL to check.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |