|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object | +--org.mmbase.util.xml.URIResolver
This URIResolver can be used to resolve URI's, also in TransformerFactory's. It has knowledge of a kind of path (as used by shells). Every entry of this path is labeled with a 'prefix'. This path always has at least (and on default) two entries:
| Inner Class Summary | |
static class |
URIResolver.EntryList
This is a list of prefix/directory pairs which is used in the constructor of URIResolver. |
| Constructor Summary | |
URIResolver()
Create an URIResolver without support for a certain directory. |
|
URIResolver(java.io.File c)
Create an URIResolver for a certain directory. |
|
URIResolver(java.io.File c,
boolean overhead)
This constructor does not create an actual object that can be used. |
|
URIResolver(java.io.File c,
URIResolver.EntryList extradirs)
Besides the current working directory you can also supply an ordered list of URIResolver.Entry's. |
|
| Method Summary | |
boolean |
equals(java.lang.Object o)
URIResolver can be used as a key in Maps (Caches). |
int |
getByteSize()
Determins the byte-size of this object |
int |
getByteSize(SizeOf sizeof)
Determins the byte-size of this object using the given SizeOf instance. |
java.io.File |
getCwd()
Returns the working directory which was supplied in the constructor. |
java.lang.String |
getPath()
Creates a 'path' string, which is a list of directories. |
java.util.List |
getPrefixPath()
Creates a List of strings, every entry is a directory prefixed with its 'prefix'. |
int |
hashCode()
URIResolver can be used as a key in Maps (Caches). |
javax.xml.transform.Source |
resolve(java.lang.String href,
java.lang.String base)
Implementation of the resolve method of javax.xml.transform.URIResolver. |
java.io.File |
resolveToFile(java.lang.String href)
Resolves a given string to a File. |
java.io.File |
resolveToFile(java.lang.String href,
java.lang.String base)
Resolves the string href (possible with use of base directory 'base') to a File. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public URIResolver(java.io.File c,
boolean overhead)
cwd - The directory for which this URIResolver must (not) be created.overhead - A boolean. It is ignored. It serves only to distinct this constructor from the other one.FactoryCachepublic URIResolver(java.io.File c)
cwd - The directory for which this URIResolver must be created.public URIResolver()
public URIResolver(java.io.File c,
URIResolver.EntryList extradirs)
extradirs - A EntryList, containing 'extra' dirs with
prefixes. If not specified or null, there will still be one
'extra dir' available, namely the MMBase configuration
directory (with prefix mm:)| Method Detail |
public java.io.File getCwd()
public java.io.File resolveToFile(java.lang.String href)
href - A string, which can be a relative Path or an URI
starting with mm: or one of the other configured prefixes.public java.lang.String getPath()
public java.util.List getPrefixPath()
public java.io.File resolveToFile(java.lang.String href,
java.lang.String base)
href - base - I - resolveToFile(java.lang.String)
public javax.xml.transform.Source resolve(java.lang.String href,
java.lang.String base)
throws javax.xml.transform.TransformerException
resolve in interface javax.xml.transform.URIResolverURIResolverpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int getByteSize()
SizeMeasurablegetByteSize in interface SizeMeasurablepublic int getByteSize(SizeOf sizeof)
SizeMeasurablegetByteSize in interface SizeMeasurablepublic java.lang.String toString()
toString in class java.lang.Object
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||