|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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 |
public java.lang.String toString()
public IURIScheme getURIScheme()
public boolean isPresent()
public boolean isLeaf()
public boolean isReadable()
public boolean isWritable()
public boolean isHierarchical()
public boolean isRelative()
public IURI parent() throws URIException
URIException
- if there is no parent URI.public IURI append(IURI relativeURI) throws URIException
relativeURI
- a relative URI.
URIException
- if relativeURI is not relative.public java.io.InputStream getInputStream() throws URIException
URIException
- if a stream for this URI can not be created.public java.io.OutputStream getOutputStream() throws URIException
URIException
- if a stream for this URI can not be created.public void touchLeaf() throws URIException
URIException
- if an error occurs touching this leaf resource.public void touchFolder() throws URIException
URIException
- if an error occurs touching this folder resource.public void erase() throws URIException
URIException
- if an error occurs erasing this resource.public void rename(IURI newURI) throws URIException
newURI
- the new URI name for this URI.
URIException
- if an error occurs renaming this resource.public 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.public 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.public IURI[] list() throws URIException
URIException
- if an error occurs locating the children for this URI.public IURI[] list(IURIFilter uriFilter) throws URIException
uriFilter
- the child filter.
URIException
- if an error occurs locating the children for this URI.public boolean isAvailableAsURL()
public java.net.URL asURL() throws URIException
URIException
- if an error occurs returning this URL.public boolean isAvailableAsFile()
public java.io.File asFile() throws URIException
URIException
- if an error occurs returning this File.public java.lang.String asString()
|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |