Ignore:
Timestamp:
2014-01-06T19:21:52+01:00 (11 years ago)
Author:
simon04
Message:

see #9414 see #9542 - MapCSS validator: handle BOM in config files

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/io/UTFInputStreamReader.java

    r6362 r6650  
    1414   
    1515    /**
    16      * converts input stream to reader
     16     * Creates a new {@link InputStreamReader} from the {@link InputStream} with UTF-8 as default encoding.
     17     * @return A reader with the correct encoding. Starts to read after the BOM.
     18     * @see #create(java.io.InputStream, String)
     19     */
     20    public static UTFInputStreamReader create(InputStream input) throws IOException {
     21        return create(input, "UTF-8");
     22    }
     23
     24    /**
     25     * Creates a new {@link InputStreamReader} from the {@link InputStream}.
    1726     * @param defaultEncoding Used, when no BOM was recognized. Can be null.
    1827     * @return A reader with the correct encoding. Starts to read after the BOM.
Note: See TracChangeset for help on using the changeset viewer.