|
Gridarta Editor
|
Utility class for parsing XML files. More...
Collaboration diagram for net.sf.gridarta.utils.xml.ParseUtils:Static Public Member Functions | |
| static Document | readXmlStream (@NotNull final InputStream inputStream, @NotNull final String baseURI, @NotNull final String rootElement, @NotNull final String systemId, @NotNull final String resourceName, @Nullable final ErrorHandler errorHandler) throws IOException, ParsingException, SAXException, XIncludeException |
| Reads an XML file. More... | |
| static Document | readXmlUrl (@NotNull final URL url, @NotNull final String rootElement, @NotNull final String systemId, @NotNull final String resourceName, @Nullable final ErrorHandler errorHandler) throws IOException, ParsingException, SAXException, URISyntaxException, XIncludeException |
| Reads an XML file from an URL. More... | |
Private Member Functions | |
| ParseUtils () | |
| Private constructor to prevent instantiation. More... | |
Utility class for parsing XML files.
Definition at line 43 of file ParseUtils.java.
|
private |
Private constructor to prevent instantiation.
Definition at line 48 of file ParseUtils.java.
|
static |
Reads an XML file.
| inputStream | the XML file to read |
| baseURI | the base URI for resolving includes |
| rootElement | the tag name of the root element in the DOCTYPE declaration |
| systemId | the system ID of the doctype declaration |
| resourceName | the name of the resource that contains the DTD contents |
| errorHandler | the error handler to use or null |
| IOException | if the XML file cannot be read |
| ParsingException | if parsing the XML file fails |
| SAXException | the parsing the XML file fails |
| XIncludeException | if parsing of the XML file fails |
Definition at line 91 of file ParseUtils.java.
Referenced by net.sf.gridarta.utils.xml.ParseUtils.readXmlUrl().
Here is the caller graph for this function:
|
static |
Reads an XML file from an URL.
| url | the URL to read |
| rootElement | the tag name of the root element in the DOCTYPE declaration |
| systemId | the system ID of the doctype declaration |
| resourceName | the name of the resource that contains the DTD contents |
| errorHandler | the error handler to use or null |
| IOException | if the XML file cannot be read |
| ParsingException | if parsing the XML file fails |
| SAXException | the parsing the XML file fails |
| URISyntaxException | if an include cannot be resolved |
| XIncludeException | if parsing of the XML file fails |
Definition at line 68 of file ParseUtils.java.
References net.sf.gridarta.utils.xml.ParseUtils.readXmlStream().
Referenced by net.sf.gridarta.project.ProjectModel<?, ?, ?>.loadArchetypeTypeSet(), net.sf.gridarta.model.archetypetype.ArchetypeTypeSetParserTest.loadArchetypeTypeSet(), net.sf.gridarta.project.ProjectModel<?, ?, ?>.loadGameObjectMatchers(), net.sf.gridarta.project.ProjectModel<?, ?, ?>.loadSpecialTreasureLists(), and net.sf.gridarta.project.ProjectModel<?, ?, ?>.loadSpellFile().
Here is the call graph for this function:
Here is the caller graph for this function: