org.basex.build.xml
Class CatalogWrapper

java.lang.Object
  extended by org.basex.build.xml.CatalogWrapper

public final class CatalogWrapper
extends java.lang.Object

Wraps the CatalogResolver object. Searches for presence of one of the xml resolver packages org.apache.xml.resolver.tools.CatalogResolver or code com.sun.org.apache.xml.internal.resolver.tools.CatalogResolver.

Author:
BaseX Team 2005-12, BSD License, Michael Seiferle

Method Summary
static boolean available()
          Checks if a CatalogResolver is available.
static void set(org.xml.sax.XMLReader reader, java.lang.String cat)
          Decorates the XMLReader with the catalog resolver if it is found in the classpath.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

available

public static boolean available()
Checks if a CatalogResolver is available.

Returns:
result of check

set

public static void set(org.xml.sax.XMLReader reader,
                       java.lang.String cat)
Decorates the XMLReader with the catalog resolver if it is found in the classpath. Does nothing otherwise.

Parameters:
reader - XML reader
cat - path to catalog file