// nothing special, since no indentation is added /// <summary> /// Method called after an array value has been completely /// output, and before another value is to be output. /// </summary> /// <remarks> /// 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. /// </remarks> /// <exception cref="System.IO.IOException"/> /// <exception cref="com.fasterxml.jackson.core.JsonGenerationException"/> public virtual void writeArrayValueSeparator(com.fasterxml.jackson.core.JsonGenerator jg) { jg.writeRaw(','); }
/// <exception cref="System.IO.IOException"/> public override void writeIndentation(com.fasterxml.jackson.core.JsonGenerator jg , int level) { jg.writeRaw(eol); if (level > 0) { // should we err on negative values (as there's some flaw?) level *= charsPerLevel; while (level > indents.Length) { // unlike to happen but just in case jg.writeRaw(indents, 0, indents.Length); level -= indents.Length; } jg.writeRaw(indents, 0, level); } }
/// <exception cref="System.IO.IOException"/> /// <exception cref="com.fasterxml.jackson.core.JsonGenerationException"/> public virtual void writeStartArray(com.fasterxml.jackson.core.JsonGenerator jg) { jg.writeRaw('['); }
/// <exception cref="System.IO.IOException"/> /// <exception cref="com.fasterxml.jackson.core.JsonGenerationException"/> public virtual void writeStartObject(com.fasterxml.jackson.core.JsonGenerator jg) { jg.writeRaw('{'); }
/* /********************************************************** /* PrettyPrinter impl /********************************************************** */ /// <exception cref="System.IO.IOException"/> /// <exception cref="com.fasterxml.jackson.core.JsonGenerationException"/> public virtual void writeRootValueSeparator(com.fasterxml.jackson.core.JsonGenerator jg) { if (_rootValueSeparator != null) { jg.writeRaw(_rootValueSeparator); } }
// nothing special, since no indentation is added /// <summary> /// Method called after an object field has been output, but /// before the value is output. /// </summary> /// <remarks> /// 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. /// </remarks> /// <exception cref="System.IO.IOException"/> /// <exception cref="com.fasterxml.jackson.core.JsonGenerationException"/> public virtual void writeObjectFieldValueSeparator(com.fasterxml.jackson.core.JsonGenerator jg) { jg.writeRaw(':'); }
/// <summary> /// Method called after an object entry (field:value) has been completely /// output, and before another value is to be output. /// </summary> /// <remarks> /// 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. /// </remarks> /// <exception cref="System.IO.IOException"/> /// <exception cref="com.fasterxml.jackson.core.JsonGenerationException"/> public virtual void writeObjectEntrySeparator(com.fasterxml.jackson.core.JsonGenerator jg) { jg.writeRaw(','); }
/// <exception cref="System.IO.IOException"/> /// <exception cref="com.fasterxml.jackson.core.JsonGenerationException"/> public virtual void writeEndObject(com.fasterxml.jackson.core.JsonGenerator jg, int nrOfEntries) { jg.writeRaw('}'); }
/// <exception cref="System.IO.IOException"/> /// <exception cref="com.fasterxml.jackson.core.JsonGenerationException"/> public virtual void writeEndArray(com.fasterxml.jackson.core.JsonGenerator jg, int nrOfValues) { jg.writeRaw(']'); }