Changeset 6552 in josm for trunk/src/org/openstreetmap/josm/plugins/PluginListParser.java
- Timestamp:
- 2013-12-28T00:30:15+01:00 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/plugins/PluginListParser.java
r6296 r6552 1 1 // License: GPL. For details, see LICENSE file. 2 2 package org.openstreetmap.josm.plugins; 3 4 import org.openstreetmap.josm.tools.Utils; 3 5 4 6 import static org.openstreetmap.josm.tools.I18n.tr; … … 9 11 import java.io.InputStream; 10 12 import java.io.InputStreamReader; 11 import java.io.UnsupportedEncodingException;12 13 import java.util.LinkedList; 13 14 import java.util.List; … … 35 36 try { 36 37 return new PluginInformation( 37 new ByteArrayInputStream(manifest.getBytes( "utf-8")),38 new ByteArrayInputStream(manifest.getBytes(Utils.UTF_8)), 38 39 name.substring(0, name.length() - 4), 39 40 url 40 41 ); 41 } catch(UnsupportedEncodingException e) {42 throw new PluginListParseException(tr("Failed to create plugin information from manifest for plugin ''{0}''", name), e);43 42 } catch (PluginException e) { 44 43 throw new PluginListParseException(tr("Failed to create plugin information from manifest for plugin ''{0}''", name), e); … … 61 60 BufferedReader r = null; 62 61 try { 63 r = new BufferedReader(new InputStreamReader(in, "utf-8"));62 r = new BufferedReader(new InputStreamReader(in, Utils.UTF_8)); 64 63 String name = null; 65 64 String url = null;
Note:
See TracChangeset
for help on using the changeset viewer.
