JsonEncoder(Schema sc, OutputStream out) throws IOException { this(sc, getJsonGenerator(out, false)); }
JsonEncoder(Schema sc, OutputStream out, boolean pretty) throws IOException { this(sc, getJsonGenerator(out, pretty)); }
JsonEncoder(Schema sc, OutputStream out, boolean pretty) throws IOException { this(sc, getJsonGenerator(out, pretty)); }
JsonEncoder(Schema sc, OutputStream out) throws IOException { this(sc, getJsonGenerator(out, false)); }
/** * Reconfigures this JsonEncoder to use the output stream provided. * <p/> * If the OutputStream provided is null, a NullPointerException is thrown. * <p/> * Otherwise, this JsonEncoder will flush its current output and then * reconfigure its output to use a default UTF8 JsonGenerator that writes * to the provided OutputStream. * * @param out * The OutputStream to direct output to. Cannot be null. * @throws IOException * @return this JsonEncoder */ public JsonEncoder configure(OutputStream out) throws IOException { this.configure(getJsonGenerator(out, false)); return this; }
/** * Reconfigures this JsonEncoder to use the output stream provided. * <p/> * If the OutputStream provided is null, a NullPointerException is thrown. * <p/> * Otherwise, this JsonEncoder will flush its current output and then * reconfigure its output to use a default UTF8 JsonGenerator that writes * to the provided OutputStream. * * @param out * The OutputStream to direct output to. Cannot be null. * @throws IOException * @return this JsonEncoder */ public JsonEncoder configure(OutputStream out) throws IOException { this.configure(getJsonGenerator(out, false)); return this; }
public JsonEncoder(Schema sc, OutputStream out) throws IOException { this(sc, getJsonGenerator(out)); }
JsonEncoder(Schema sc, OutputStream out, boolean pretty) throws IOException { this(sc, getJsonGenerator(out, pretty)); }
JsonEncoder(Schema sc, OutputStream out) throws IOException { this(sc, getJsonGenerator(out, false)); }
public JsonEncoder(Schema sc, OutputStream out) throws IOException { this(sc, getJsonGenerator(out)); }
JsonEncoder(Schema sc, OutputStream out) throws IOException { this(sc, getJsonGenerator(out)); }
@Override public void init(OutputStream out) throws IOException { flush(); this.out = getJsonGenerator(out); }
@Override public void init(OutputStream out) throws IOException { flush(); this.out = getJsonGenerator(out); }
/** * Reconfigures this JsonEncoder to use the output stream provided. * <p/> * If the OutputStream provided is null, a NullPointerException is thrown. * <p/> * Otherwise, this JsonEncoder will flush its current output and then * reconfigure its output to use a default UTF8 JsonGenerator that writes * to the provided OutputStream. * * @param out * The OutputStream to direct output to. Cannot be null. * @throws IOException * @return this JsonEncoder */ public JsonEncoder configure(OutputStream out) throws IOException { this.configure(getJsonGenerator(out)); return this; }
/** * Reconfigures this JsonEncoder to use the output stream provided. * <p/> * If the OutputStream provided is null, a NullPointerException is thrown. * <p/> * Otherwise, this JsonEncoder will flush its current output and then * reconfigure its output to use a default UTF8 JsonGenerator that writes * to the provided OutputStream. * * @param out * The OutputStream to direct output to. Cannot be null. * @throws IOException * @return this JsonEncoder */ public JsonEncoder configure(OutputStream out) throws IOException { this.configure(getJsonGenerator(out, false)); return this; }