|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IURI
A IURI represents a Univeral Resource Identifer.
Method Summary | |
---|---|
IURI |
append(IURI relativeURI)
|
java.io.File |
asFile()
|
java.lang.String |
asString()
|
java.net.URL |
asURL()
|
void |
erase()
Erases the resource identified by this IURI. |
java.io.InputStream |
getInputStream()
|
java.io.OutputStream |
getOutputStream()
|
IURIScheme |
getURIScheme()
|
boolean |
isAvailableAsFile()
|
boolean |
isAvailableAsURL()
|
boolean |
isHierarchical()
|
boolean |
isLeaf()
|
boolean |
isPresent()
|
boolean |
isReadable()
|
boolean |
isRelative()
|
boolean |
isWritable()
|
IURI[] |
list()
Returns a list of URIs for the immediate children of the given hierarchical, non-leaf IURI. |
IURI[] |
list(IURIFilter uriFilter)
As for list(), except only URIs that are accepted by the given filter are returned in the array. |
IURI |
parent()
|
void |
rename(IURI newURI)
Renames or moves the resource identified by this IURI to the new IURI. |
java.lang.String |
toString()
|
void |
touchFolder()
Creates a new folder resource at the location identified by the IURI. |
void |
touchLeaf()
Creates a new, empty resource at the location identified by the IURI. |
void |
visit(IURIVisitor uriVisitor)
Visits this resource and its decendants in pre-order fashion. |
void |
visit(IURIVisitor uriVisitor,
IURIFilter uriFilter)
As for visit(IURIVisitor), except only resource URIs that are accepted by the given filter are visited. |
Method Detail |
---|
java.lang.String toString()
toString
in class java.lang.Object
IURIScheme getURIScheme()
boolean isPresent()
boolean isLeaf()
boolean isReadable()
boolean isWritable()
boolean isHierarchical()
boolean isRelative()
IURI parent() throws URIException
URIException
- if there is no parent URI.IURI append(IURI relativeURI) throws URIException
relativeURI
- a relative URI.
URIException
- if relativeURI is not relative.java.io.InputStream getInputStream() throws URIException
URIException
- if a stream for this URI can not be created.java.io.OutputStream getOutputStream() throws URIException
URIException
- if a stream for this URI can not be created.void touchLeaf() throws URIException
URIException
- if an error occurs touching this leaf resource.void touchFolder() throws URIException
URIException
- if an error occurs touching this folder resource.void erase() throws URIException
URIException
- if an error occurs erasing this resource.void rename(IURI newURI) throws URIException
newURI
- the new URI name for this URI.
URIException
- if an error occurs renaming this resource.void visit(IURIVisitor uriVisitor) throws URIException
uriVisitor
- the visitor that will be called for each resource visited.
URIException
- if an error occurs visiting this resource and its children.void visit(IURIVisitor uriVisitor, IURIFilter uriFilter) throws URIException
uriVisitor
- the visitor that will be called for each resource visited.uriFilter
- the resource filter.
URIException
- if an error occurs visiting this resource and its children.IURI[] list() throws URIException
URIException
- if an error occurs locating the children for this URI.IURI[] list(IURIFilter uriFilter) throws URIException
uriFilter
- the child filter.
URIException
- if an error occurs locating the children for this URI.boolean isAvailableAsURL()
java.net.URL asURL() throws URIException
URIException
- if an error occurs returning this URL.boolean isAvailableAsFile()
java.io.File asFile() throws URIException
URIException
- if an error occurs returning this File.java.lang.String asString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |