Apigen

edu.uci.isr.apigen
Class ApiGenUtils

java.lang.Object
  extended byedu.uci.isr.apigen.ApiGenUtils

public class ApiGenUtils
extends Object


Constructor Summary
ApiGenUtils()
           
 
Method Summary
static void dumpNode(Node n)
           
static void expect(Node n, String namespaceURI, String tagName)
           
static boolean matches(Node n, String namespaceURI, String tagName)
           
static Reader openFile(File f)
           
static Reader openFile(String filename)
           
static Reader openResource(String resourceName)
           
static Reader openURL(String urlString)
           
static Reader openURL(URL url)
           
static Document parseToDocument(Reader r)
           
static String replaceTokens(String tokenedString, TokenMap map)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ApiGenUtils

public ApiGenUtils()
Method Detail

replaceTokens

public static String replaceTokens(String tokenedString,
                                   TokenMap map)

openResource

public static Reader openResource(String resourceName)

openFile

public static Reader openFile(File f)

openFile

public static Reader openFile(String filename)

openURL

public static Reader openURL(String urlString)

openURL

public static Reader openURL(URL url)

parseToDocument

public static Document parseToDocument(Reader r)
                                throws SAXException,
                                       IOException
Throws:
SAXException
IOException

matches

public static boolean matches(Node n,
                              String namespaceURI,
                              String tagName)

expect

public static void expect(Node n,
                          String namespaceURI,
                          String tagName)

dumpNode

public static void dumpNode(Node n)

Apigen