@Override protected void writePrefix(JsonGenerator generator, Object object) throws IOException { if (this.jsonPrefix != null) { generator.writeRaw(this.jsonPrefix); } }
@Override protected void writePrefix(JsonGenerator generator, Object object) throws IOException { if (this.jsonPrefix != null) { generator.writeRaw(this.jsonPrefix); } }
@Override public void writeStartObject(JsonGenerator g) throws IOException { g.writeRaw('{'); }
@Override public void writeEndObject(JsonGenerator g, int nrOfEntries) throws IOException { g.writeRaw('}'); }
@Override public void writeStartArray(JsonGenerator g) throws IOException { g.writeRaw('['); }
@Override public void writeRootValueSeparator(JsonGenerator g) throws IOException { if (_rootValueSeparator != null) { g.writeRaw(_rootValueSeparator); } }
@Override public void writeIndentation(JsonGenerator g, int level) throws IOException { g.writeRaw(' '); }
@Override public void writeRootValueSeparator(JsonGenerator g) throws IOException { if (_rootSeparator != null) { g.writeRaw(_rootSeparator); } }
/** * Method called after an array value has been completely * output, and before another value is to be output. *<p> * Default handling (without pretty-printing) will output a single * comma to separate values. */ @Override public void writeArrayValueSeparator(JsonGenerator g) throws IOException { g.writeRaw(_separators.getArrayValueSeparator()); }
@Override public void writeRaw(char[] text, int offset, int len) throws IOException { if (_checkRawValueWrite()) { delegate.writeRaw(text, offset, len); } }
@Override public void writeRawValue(String text) throws IOException { if (_checkRawValueWrite()) { delegate.writeRaw(text); } }
/** * Method called after an object field has been output, but * before the value is output. *<p> * Default handling will just output a single * colon to separate the two, without additional spaces. */ @Override public void writeObjectFieldValueSeparator(JsonGenerator g) throws IOException { g.writeRaw(_separators.getObjectFieldValueSeparator()); }
@Override public void writeRaw(String text, int offset, int len) throws IOException { if (_checkRawValueWrite()) { delegate.writeRaw(text); } }
@Override public void writeRaw(char c) throws IOException { if (_checkRawValueWrite()) { delegate.writeRaw(c); } }
@Override public void writeRawValue(char[] text, int offset, int len) throws IOException { if (_checkRawValueWrite()) { delegate.writeRaw(text, offset, len); } }
/** * Method called after an object entry (field:value) has been completely * output, and before another value is to be output. *<p> * Default handling (without pretty-printing) will output a single * comma to separate the two. */ @Override public void writeObjectEntrySeparator(JsonGenerator g) throws IOException { g.writeRaw(_separators.getObjectEntrySeparator()); }
@Override public void writeRaw(String text) throws IOException { if (_checkRawValueWrite()) { delegate.writeRaw(text); } }
@Override public void writeRaw(SerializableString text) throws IOException { if (_checkRawValueWrite()) { delegate.writeRaw(text); } }
@Override public void writeStartObject(JsonGenerator g) throws IOException { g.writeRaw('{'); if (!_objectIndenter.isInline()) { ++_nesting; } }
@Override public void writeStartArray(JsonGenerator g) throws IOException { if (!_arrayIndenter.isInline()) { ++_nesting; } g.writeRaw('['); }