| java.lang.Object com.sun.jbi.internal.security.util.Loader
Loader | public class Loader (Code) | | This class is a helper class which aids in converting
a DOM Document to a File and vice-versa.
author: Sun Microsystems, Inc. |
Method Summary | |
public Document | load(String filename, boolean validate, org.xml.sax.ErrorHandler handler, String[] schemaFiles) Given a filename load an XML document into
a Document object and return it.
Parameters: filename - is the String filename of the XML filereferences, if this paramter is null the XML parsers default resolution is used. Parameters: validate - indicates that the document is to be validated. Parameters: schemaFiles - are the schema files to be used if validation is to be done, this parameter can be null if validate = false. Parameters: handler - is the ErrorHandler throws: java.io.FileNotFoundException - if the file with name filename is not found. throws: java.io.IOException - on IO errors throws: SAXException - on XML parsing errors. throws: ParserConfigurationException - if the XML Parser is not configured correctly. | public Document | load(InputStream istr, boolean validate, org.xml.sax.ErrorHandler handler, String[] schemaFiles) Given a Inputstream load an XML document into
a Document object and return it.
Parameters: istr - is a stream to the input XML file. Parameters: validate - if true indicates that the document is to be validatedagainst it's schema. Parameters: handler - is the ErrorHandler which is to be delegated XML parsing Errorhandling tasks. Parameters: schemaFiles - are the schema files to be used if validation is to be done, this parameter can be null if validate = false. | public Document | load(Reader reader, boolean validate, org.xml.sax.ErrorHandler handler, String[] schemaFiles) Given a Inputstream load an XML document into
a Document object and return it.
Parameters: reader - is a reader to the input XML file Parameters: validate - if true indicates that the document is to be validatedagainst it's schema. Parameters: handler - is the ErrorHandler which is to be delegated XML parsing Errorhandling tasks. Parameters: schemaFiles - are the schema file to be used if validation is to be done, this parameter can be null if validate = false. | public Document | load(InputSource ipsrc, boolean validate, org.xml.sax.ErrorHandler handler, String[] schemaFiles) Given a Inputstream load an XML document into
a Document object and return it.
Parameters: ipsrc - is a SAX InputSource to the XML file Parameters: validate - if true indicates that the document is to be validatedagainst it's schema. Parameters: handler - is the ErrorHandler which is to be delegated XML parsing Errorhandling tasks. Parameters: schemaFiles - are the schema file to be used if validation is to be done, this parameter can be null if validate = false. |
load | public Document load(Reader reader, boolean validate, org.xml.sax.ErrorHandler handler, String[] schemaFiles) throws java.io.IOException, SAXException, ParserConfigurationException(Code) | | Given a Inputstream load an XML document into
a Document object and return it.
Parameters: reader - is a reader to the input XML file Parameters: validate - if true indicates that the document is to be validatedagainst it's schema. Parameters: handler - is the ErrorHandler which is to be delegated XML parsing Errorhandling tasks. Parameters: schemaFiles - are the schema file to be used if validation is to be done, this parameter can be null if validate = false. the XML Document object throws: SAXException - on XML Parsing errors. throws: ParserConfigurationException - if the parser is not configured correctly. throws: java.io.IOException - on IO Errors. |
|
|