edu.internet2.middleware.grouper.xml
Class XmlReader

java.lang.Object
  extended by edu.internet2.middleware.grouper.xml.XmlReader

public class XmlReader
extends Object

Read XML representation of the Groups Registry.

Since:
1.1.0
Version:
$Id: XmlReader.java,v 1.2 2008-09-29 03:38:30 mchyzer Exp $
Author:
blair christensen.

Constructor Summary
XmlReader()
           
 
Method Summary
static Document getDocumentFromFile(String filename)
          Read Document from file.
static Document getDocumentFromString(String s)
          Read Document from String.
static Document getDocumentFromURL(URL url)
          Read Document from URL.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XmlReader

public XmlReader()
Method Detail

getDocumentFromFile

public static Document getDocumentFromFile(String filename)
                                    throws GrouperException
Read Document from file.
 try {
   Document doc = XmlReader.getDocumentFromFile(filename);
 }
 catch (GrouperException eG) {
   // unable to retrieve document
 }
 

Parameters:
filename - Read Document from this file.
Throws:
GrouperException
Since:
1.1.0

getDocumentFromString

public static Document getDocumentFromString(String s)
                                      throws GrouperException
Read Document from String.
 try {
   Document doc = XmlReader.getDocumentFromString(s);
 }
 catch (GrouperException eG) {
   // unable to retrieve document
 }
 

Parameters:
s - Read document from this String.
Throws:
GrouperException
Since:
1.1.0

getDocumentFromURL

public static Document getDocumentFromURL(URL url)
                                   throws GrouperException
Read Document from URL.
 try {
 }
 catch (GrouperException eG) {
 }
 

Parameters:
url - Read Document from this URL.
Throws:
GrouperException
Since:
1.1.0