|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mulgara.jena.n3.IRIResolver
public class IRIResolver
A simple class to access IRI resolution
| Constructor Summary | |
|---|---|
IRIResolver()
Construct an IRIResolver with base as the current working directory. |
|
IRIResolver(String baseS)
Construct an IRIResolver with base determined by the argument URI. |
|
| Method Summary | |
|---|---|
static String |
chooseBaseURI()
Choose a base URI based on the current directory |
static String |
chooseBaseURI(String baseURI)
Choose a baseURI based on a suggestion |
String |
getBaseIRI()
The base of this IRIResolver. |
String |
resolve(String relURI)
Resolve the relative URI against the base of this IRIResolver. |
static String |
resolve(String relStr,
String baseStr)
Create resolve a URI against a base. |
static String |
resolveFileURL(String filename)
Turn a filename into a well-formed file: URL relative to the working directory. |
static String |
resolveGlobal(String str)
Resolve the relative URI str against the current working directory. |
static void |
suppressExceptions()
To allow Eyeball to bypass IRI checking (because it's doing its own) |
static String |
toURL(String filename)
Turn a plain filename into a "file:" URL |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public IRIResolver()
public IRIResolver(String baseS)
baseS -
JenaURIException - If resulting base would not be legal, absolute IRI| Method Detail |
|---|
public static String resolveFileURL(String filename)
throws com.hp.hpl.jena.iri.IRIException
filename -
com.hp.hpl.jena.iri.IRIException
public static String resolve(String relStr,
String baseStr)
throws JenaURIException
relStr - baseStr - Can be null if relStr is absolute
JenaURIException - If result would not be legal, absolute IRIpublic String getBaseIRI()
public String resolve(String relURI)
relURI -
JenaURIException - If resulting URI would not be legal, absolute IRIpublic static void suppressExceptions()
public static String resolveGlobal(String str)
str -
public static String chooseBaseURI()
public static String chooseBaseURI(String baseURI)
public static String toURL(String filename)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||