[FOray-commit] SF.net SVN: foray:[13053] trunk/foray
Modular XSL-FO Implementation for Java.
Status: Alpha
Brought to you by:
victormote
|
From: <vic...@us...> - 2023-01-11 17:08:13
|
Revision: 13053
http://sourceforge.net/p/foray/code/13053
Author: victormote
Date: 2023-01-11 17:08:11 +0000 (Wed, 11 Jan 2023)
Log Message:
-----------
Remove duplicate method. Rename remaining one.
Modified Paths:
--------------
trunk/foray/foray-graphic/src/main/java/org/foray/graphic/factory/MathFactory.java
trunk/foray/foray-xml/src/main/java/org/foray/xml/DomUtil.java
Modified: trunk/foray/foray-graphic/src/main/java/org/foray/graphic/factory/MathFactory.java
===================================================================
--- trunk/foray/foray-graphic/src/main/java/org/foray/graphic/factory/MathFactory.java 2023-01-10 22:01:34 UTC (rev 13052)
+++ trunk/foray/foray-graphic/src/main/java/org/foray/graphic/factory/MathFactory.java 2023-01-11 17:08:11 UTC (rev 13053)
@@ -115,7 +115,7 @@
final InputStream theStream = MathFactory.getMathMLDtdAsInputStream(fileName);
final DOMImplementationLS implementation;
try {
- implementation = DomUtil.getDOMImplementation();
+ implementation = DomUtil.getDOMImplementationLS();
} catch (final IOException e) {
return null;
}
Modified: trunk/foray/foray-xml/src/main/java/org/foray/xml/DomUtil.java
===================================================================
--- trunk/foray/foray-xml/src/main/java/org/foray/xml/DomUtil.java 2023-01-10 22:01:34 UTC (rev 13052)
+++ trunk/foray/foray-xml/src/main/java/org/foray/xml/DomUtil.java 2023-01-11 17:08:11 UTC (rev 13053)
@@ -104,7 +104,7 @@
* @return The DOM Implementation.
* @throws IOException For errors obtaining an instance of the DOM Implementation registry.
*/
- public static DOMImplementationLS procureDOMImplementation() throws IOException {
+ public static DOMImplementationLS getDOMImplementationLS() throws IOException {
final DOMImplementationRegistry registry = DomUtil.getDOMRegistry();
final DOMImplementationLS impl = (DOMImplementationLS) registry.getDOMImplementation("LS");
@@ -112,18 +112,6 @@
}
/**
- * Returns the DOM Implementation.
- * @return The DOM Implementation.
- * @throws IOException For errors obtaining an instance of the DOM Implementation registry.
- */
- public static DOMImplementationLS getDOMImplementation() throws IOException {
- final DOMImplementationRegistry registry = DomUtil.getDOMRegistry();
-
- final DOMImplementationLS impl = (DOMImplementationLS) registry.getDOMImplementation("LS");
- return impl;
- }
-
- /**
* Converts an input stream to a generic DOM Document.
* @param inputStream The stream to be parsed to a DOM document.
* @param resourceResolver The resource resolver to use, which can be null.
@@ -133,7 +121,7 @@
*/
public static Document streamToDom(final InputStream inputStream, final LSResourceResolver resourceResolver)
throws IOException {
- final DOMImplementationLS impl = DomUtil.getDOMImplementation();
+ final DOMImplementationLS impl = DomUtil.getDOMImplementationLS();
final LSParser builder = impl.createLSParser(DOMImplementationLS.MODE_SYNCHRONOUS, null);
final DOMConfiguration domConfiguration = builder.getDomConfig();
if (resourceResolver != null
@@ -158,7 +146,7 @@
public static LSInput createLSInput(final InputStream inputStream, final String publicId, final String systemId) {
final DOMImplementationLS implementation;
try {
- implementation = DomUtil.getDOMImplementation();
+ implementation = DomUtil.getDOMImplementationLS();
} catch (final IOException e) {
return null;
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|