commit | 85fcbbddad40c1f5880401433107500eaea95469 | [log] [tgz] |
---|---|---|
author | rescobar <roberto.e.escobar@boeing.com> | Tue Feb 08 11:05:26 2011 -0700 |
committer | Ryan D. Brooks <ryan.d.brooks@boeing.com> | Tue Feb 08 11:05:26 2011 -0700 |
tree | 285dac077a6f2d07007d8ad88b8d28a89c9d25c0 | |
parent | 4e59d56590338efae45348489b27ca5b54495946 [diff] |
refactor: Add deprecated readXmlDocument method for OTE backwards compatibility
diff --git a/plugins/org.eclipse.osee.framework.jdk.core/src/org/eclipse/osee/framework/jdk/core/util/xml/Jaxp.java b/plugins/org.eclipse.osee.framework.jdk.core/src/org/eclipse/osee/framework/jdk/core/util/xml/Jaxp.java index 64f2289..6ec2960 100644 --- a/plugins/org.eclipse.osee.framework.jdk.core/src/org/eclipse/osee/framework/jdk/core/util/xml/Jaxp.java +++ b/plugins/org.eclipse.osee.framework.jdk.core/src/org/eclipse/osee/framework/jdk/core/util/xml/Jaxp.java
@@ -391,6 +391,11 @@ return findElement(e, Arrays.asList(elementPath.split("/"))); } + @Deprecated + public static Document readXmlDocument(InputStream is) throws ParserConfigurationException, SAXException, IOException { + return readXmlDocument(is, "UTF-8"); + } + public static Document readXmlDocument(InputStream is, String encoding) throws ParserConfigurationException, SAXException, IOException { InputSource inputSource = new InputSource(is); inputSource.setEncoding(encoding);