Revision 8edbe5b9
Added by Leszek Koltunski 11 months ago
src/main/java/org/distorted/objectlib/json/JsonWriter.java | ||
---|---|---|
700 | 700 |
|
701 | 701 |
public void write(String filename, String contents) throws IOException |
702 | 702 |
{ |
703 |
OutputStreamWriter osw = new OutputStreamWriter(new FileOutputStream(filename), StandardCharsets.UTF_8); |
|
703 |
FileOutputStream fos = new FileOutputStream(filename); |
|
704 |
OutputStreamWriter osw = new OutputStreamWriter(fos, StandardCharsets.UTF_8); |
|
704 | 705 |
BufferedWriter bw = new BufferedWriter(osw); |
705 | 706 |
bw.write(contents); |
706 | 707 |
bw.flush(); |
Also available in: Unified diff
minor