Class XmlReader
java.lang.Object
edu.internet2.middleware.grouper.xml.XmlReader
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 $
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Document
getDocumentFromFile
(String filename) Read Document from file.static Document
Read Document from String.static Document
getDocumentFromURL
(URL url) Read Document from URL.
-
Constructor Details
-
XmlReader
public XmlReader()
-
-
Method Details
-
getDocumentFromFile
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
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
Read Document from URL.try { } catch (GrouperException eG) { }
- Parameters:
url
- Read Document from this URL.- Throws:
GrouperException
- Since:
- 1.1.0
-