Changeset 14746 in josm for trunk/scripts
- Timestamp:
- 2019-01-27T22:26:35+01:00 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/scripts/TagInfoExtract.java
r14651 r14746 5 5 import java.io.BufferedReader; 6 6 import java.io.IOException; 7 import java.io.InputStream;8 7 import java.io.OutputStream; 9 8 import java.io.StringWriter; … … 321 320 */ 322 321 private void parseStyleSheet() throws IOException, ParseException { 323 try ( InputStream stream= options.inputFile.getInputStream()) {324 MapCSSParser parser = new MapCSSParser( stream, "UTF-8", MapCSSParser.LexicalState.DEFAULT);322 try (BufferedReader reader = options.inputFile.getContentReader()) { 323 MapCSSParser parser = new MapCSSParser(reader, MapCSSParser.LexicalState.DEFAULT); 325 324 styleSource = new MapCSSStyleSource(""); 326 325 styleSource.url = "";
Note:
See TracChangeset
for help on using the changeset viewer.