[Schmitzm-commits] r303 - trunk/src/schmitzm/geotools/styling
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Tue Aug 18 14:01:45 CEST 2009
Author: alfonx
Date: 2009-08-18 14:01:45 +0200 (Tue, 18 Aug 2009)
New Revision: 303
Modified:
trunk/src/schmitzm/geotools/styling/StylingUtil.java
Log:
* removed unused method
Modified: trunk/src/schmitzm/geotools/styling/StylingUtil.java
===================================================================
--- trunk/src/schmitzm/geotools/styling/StylingUtil.java 2009-08-17 12:45:48 UTC (rev 302)
+++ trunk/src/schmitzm/geotools/styling/StylingUtil.java 2009-08-18 12:01:45 UTC (rev 303)
@@ -888,50 +888,50 @@
// This is the main successful exit form loadSLD
return styles;
}
+//
+// /**
+// * Loads {@link Style}s from a SLD {@link InputStream} without setting a
+// * {@link Charset}
+// *
+// * @param inputStream
+// * {@link InputStream} to read the SLD from
+// *
+// * @return An {@link Array} of {@link Style}s, can be length==0. null if
+// * file not exists
+// *
+// * @author <a href="mailto:skpublic at wikisquare.de">Stefan Alfons
+// * Krüger</a>
+// *
+// * @deprecated
+// */
+// public static Style[] loadSLDOld(InputStream inputStream) {
+// final InputStream inputStream2 = inputStream;
+// if (inputStream2 == null) {
+// return null;
+// }
+//
+// // Reader reader = new UTF8Reader(inputStream2);
+//
+// LOGGER.debug("Loading styles from inputStream...");
+//
+// SLDParser stylereader;
+// stylereader = new SLDParser(StylingUtil.STYLE_FACTORY, inputStream2);
+// Style[] styles = stylereader.readXML();
+//
+// if (styles[0] == null) {
+// LOGGER
+// .warn(" ... no Styles recognized in inputStream. Will return empty styles[] array!");
+// } else {
+// LOGGER.debug(" ... loaded " + styles.length
+// + " styles from inputStream, first style's name= "
+// + styles[0].getName());
+// }
+//
+// // This is the main successful exit form loadSLD
+// return styles;
+// }
/**
- * Loads {@link Style}s from a SLD {@link InputStream} without setting a
- * {@link Charset}
- *
- * @param inputStream
- * {@link InputStream} to read the SLD from
- *
- * @return An {@link Array} of {@link Style}s, can be length==0. null if
- * file not exists
- *
- * @author <a href="mailto:skpublic at wikisquare.de">Stefan Alfons
- * Krüger</a>
- *
- * @deprecated
- */
- public static Style[] loadSLDOld(InputStream inputStream) {
- final InputStream inputStream2 = inputStream;
- if (inputStream2 == null) {
- return null;
- }
-
- // Reader reader = new UTF8Reader(inputStream2);
-
- LOGGER.debug("Loading styles from inputStream...");
-
- SLDParser stylereader;
- stylereader = new SLDParser(StylingUtil.STYLE_FACTORY, inputStream2);
- Style[] styles = stylereader.readXML();
-
- if (styles[0] == null) {
- LOGGER
- .warn(" ... no Styles recognized in inputStream. Will return empty styles[] array!");
- } else {
- LOGGER.debug(" ... loaded " + styles.length
- + " styles from inputStream, first style's name= "
- + styles[0].getName());
- }
-
- // This is the main successful exit form loadSLD
- return styles;
- }
-
- /**
* Loads {@link Style}s from a SLD {@link File}
*
* @param sldFile
@@ -970,7 +970,6 @@
*/
public static final void saveStyleToSLD(Style style, File exportFile,
Charset charset) throws TransformerException, IOException {
- Writer w = null;
if (charset != null) {
LOGGER
More information about the Schmitzm-commits
mailing list