|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object uk.ac.bham.gloss.Resolver
public class Resolver
This class extends EntityResolver and provides a filter to determine which XML input files are local and from the GLOSS distribution and which are non-local. Copyright Richard Kaye 2007-8 for GLOSS, http://gloss.bham.ac.uk Usage permitted according to the GPL. No waranty.
Constructor Summary | |
---|---|
Resolver()
|
|
Resolver(Logger l)
|
Method Summary | |
---|---|
static java.lang.String |
findGlossDirectory()
Searches for a GLOSS distribuition directory in the following locations (in order) $GLOSS $HOME/gloss $HOME/.gloss /usr/local/share/gloss /usr/local/lib/gloss /usr/share/gloss /usr/lib/gloss else uses null (i.e., use URLs rather than local files). |
static java.lang.String |
replaceGlossURLPrefix(java.lang.String uri,
java.lang.String localBase)
|
javax.xml.transform.Source |
resolve(java.lang.String href,
java.lang.String base)
|
java.lang.String |
resolveEntity(java.lang.String systemId)
Standard resolveEntity method as required in org.xml.sax.EntityResolver. |
org.xml.sax.InputSource |
resolveEntity(java.lang.String publicId,
java.lang.String systemId)
Standard resolveEntity method as required in org.xml.sax.EntityResolver. |
void |
setGlossDirectory(java.lang.String d)
Sets the directory of a GLOSS distribution directory. |
void |
setLogger(Logger l)
Sets the logger object for diagnostics on this resolver |
protected static boolean |
testGlossLocalBase(java.lang.String glossLB)
Tests to see if "glossLB" is the base directory of a GLOSS distribution. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Resolver()
public Resolver(Logger l)
Method Detail |
---|
protected static boolean testGlossLocalBase(java.lang.String glossLB)
public static java.lang.String findGlossDirectory()
public void setGlossDirectory(java.lang.String d) throws GlossException
GlossException
public void setLogger(Logger l)
public static java.lang.String replaceGlossURLPrefix(java.lang.String uri, java.lang.String localBase)
public java.lang.String resolveEntity(java.lang.String systemId)
public org.xml.sax.InputSource resolveEntity(java.lang.String publicId, java.lang.String systemId) throws org.xml.sax.SAXException, java.io.IOException
resolveEntity
in interface org.xml.sax.EntityResolver
org.xml.sax.SAXException
java.io.IOException
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.URIResolver
javax.xml.transform.TransformerException
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |