@Override public void flush() throws IOException { this.embeddedWriter.flush(); } }
@Override public void flush() throws IOException { wrappedWriter.flush(); } }
@Override public void flush() throws IOException { this.writer.flush(); } }
@Override public void flush() throws IOException { this.writer.flush(); } }
private void flush(boolean close) throws IOException { this.writer.flush(); // commit data then close the writer if (close) { commit(); close(); } }
JsonObject record = gson.fromJson(json, JsonObject.class); writer.write(record); writer.flush(); writer.close();
@Override public void flush() throws IOException { this.writer.flush(); } }
@Override public void flush() throws IOException { wrappedWriter.flush(); } }
@Override public void flush() throws IOException { this.writer.flush(); } }
@Override public void flush() throws IOException { this.embeddedWriter.flush(); } }
private void flush(boolean close) throws IOException { this.writer.flush(); // commit data then close the writer if (close) { commit(); close(); } }