|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface MCRParserInterface
This interface is designed to choose the XML parser. To construct a JDOM you have to methodes, one for a URI input an one for a XML stream.
| Method Summary | |
|---|---|
Document |
parseURI(URI uri)
Parses an XML file from a URI and returns it as DOM. |
Document |
parseURI(URI uri,
boolean valid)
Parses an XML file from a URI and returns it as DOM. |
Document |
parseXML(byte[] xml)
Parses an Byte Array and returns it as DOM. |
Document |
parseXML(byte[] xml,
boolean valid)
Parses an Byte Array and returns it as DOM. |
Document |
parseXML(InputStream input)
Parses an Byte Array and returns it as DOM. |
Document |
parseXML(InputStream input,
boolean validate)
Parses an Byte Array and returns it as DOM. |
Document |
parseXML(String xml)
Parses an XML String and returns it as DOM. |
Document |
parseXML(String xml,
boolean valid)
Parses an XML String and returns it as DOM. |
| Method Detail |
|---|
Document parseURI(URI uri)
throws MCRException
uri - the URI of the XML stream
MCRException - general Exception of MyCoRe
Document parseURI(URI uri,
boolean valid)
throws MCRException
uri - the URI of the XML filevalid - the validation flag
MCRException - if XML could not be parsed
Document parseXML(String xml)
throws MCRException
xml - the XML data stream
MCRException - general Exception of MyCoRe
Document parseXML(String xml,
boolean valid)
throws MCRException
xml - the XML String to be parsedvalid - the validation flag
MCRException - if XML could not be parsed
Document parseXML(byte[] xml)
throws MCRException
xml - the XML Byte Array to be parsed
MCRException - if XML could not be parsed
Document parseXML(byte[] xml,
boolean valid)
throws MCRException
xml - the XML Byte Array to be parsedvalid - the validation flag
MCRException - if XML could not be parsed
Document parseXML(InputStream input)
throws MCRException
input - the InputStream to be parsed
MCRException - if XML could not be parsed
Document parseXML(InputStream input,
boolean validate)
throws MCRException
input - the InputStream to be parsedvalidate - the validation flag
MCRException - if XML could not be parsed
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||