maripo / JOSM_easypresets

22 stars 7 forks source link

Replace internal JDK class `ReaderUTF8` with an `InputStreamReader` #38

Closed floscher closed 6 years ago

don-vip commented 6 years ago

Actually we have org.openstreetmap.josm.io.UTFInputStreamReader

floscher commented 6 years ago

@don-vip Thanks for the tip, didn't know that.

@maripo If you want to be able to read any UTF-encoded file, you could replace new InputStreamReader(new FileInputStream(file), StandardCharsets.UTF_8) with UTFInputStreamReader.create(new FileInputStream(file)). My solution only cares about UTF8-encoded files.