Ignore:
Timestamp:
2016-09-22T23:08:23+02:00 (8 years ago)
Author:
simon04
Message:

Use CachedFile#getContentReader where possible

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/mappaint/MapPaintStyles.java

    r10927 r11042  
    66import java.io.File;
    77import java.io.IOException;
    8 import java.io.InputStreamReader;
    9 import java.nio.charset.StandardCharsets;
     8import java.io.Reader;
    109import java.util.ArrayList;
    1110import java.util.Arrays;
     
    314313            if (Utils.hasExtension(entry.url, "mapcss"))
    315314                return new MapCSSStyleSource(entry);
    316             try (InputStreamReader reader = new InputStreamReader(cf.getInputStream(), StandardCharsets.UTF_8)) {
     315            try (Reader reader = cf.getContentReader()) {
    317316                WHILE: while (true) {
    318317                    int c = reader.read();
Note: See TracChangeset for help on using the changeset viewer.