(InputStream in)
| 118 | /// |
| 119 | /// the reader |
| 120 | public static InputStreamReader getReader(InputStream in) { |
| 121 | try { |
| 122 | return new InputStreamReader(in, "UTF-8"); |
| 123 | } catch (UnsupportedEncodingException e) { |
| 124 | // never happens |
| 125 | throw new RuntimeException(e.toString(), e); |
| 126 | } |
| 127 | } |
| 128 | |
| 129 | /// Helper to get a writer from an output stream with UTF-8 encoding |
| 130 | /// |
no test coverage detected