com.sun.org.apache.xml.internal.serializer.EncodingInfo Java Examples
The following examples show how to use
com.sun.org.apache.xml.internal.serializer.EncodingInfo.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: CheckEncodingPropertiesFile.java From openjdk-jdk9 with GNU General Public License v2.0 | 6 votes |
public static void main(String[] args) throws Exception { Properties props = new Properties(); Module xmlModule = EncodingInfo.class.getModule(); try (InputStreamReader is = new InputStreamReader(xmlModule.getResourceAsStream(ENCODINGS_FILE))) { props.load(is); } if (!props.containsKey("UTF8")) { // If the test fails here - it may indicate that you stumbled on an // issue similar to that fixed by JDK-8065138. // Check that the content of the Encodings.properties included in // the tested build image matches the content of the file in the source // jaxp tree of the jdk forest. throw new RuntimeException("UTF8 key missing in " + ENCODINGS_FILE); } //printAllCharsets(); test(props); }