Package org.bson.json

Class StrictCharacterStreamJsonWriter

java.lang.Object
org.bson.json.StrictCharacterStreamJsonWriter
All Implemented Interfaces:
StrictJsonWriter

@Deprecated(since="2022-10-31") public final class StrictCharacterStreamJsonWriter extends Object implements StrictJsonWriter
Deprecated.
Usage of this API is not supported in AEM as a Cloud Service.
A class that writes JSON texts as a character stream via a provided Writer.
Since:
3.5
  • Constructor Details

    • StrictCharacterStreamJsonWriter

      public StrictCharacterStreamJsonWriter(Writer writer, StrictCharacterStreamJsonWriterSettings settings)
      Deprecated.
      Construct an instance.
      Parameters:
      writer - the writer to write JSON to.
      settings - the settings to apply to this writer.
  • Method Details

    • getCurrentLength

      public int getCurrentLength()
      Deprecated.
      Gets the current length of the JSON text.
      Returns:
      the current length of the JSON text
    • writeStartObject

      public void writeStartObject(String name)
      Deprecated.
      Description copied from interface: StrictJsonWriter
      Writes the start of a JSON object member to the writer.
      Specified by:
      writeStartObject in interface StrictJsonWriter
      Parameters:
      name - the member name
    • writeStartArray

      public void writeStartArray(String name)
      Deprecated.
      Description copied from interface: StrictJsonWriter
      Writes the start of JSON array member to the writer.
      Specified by:
      writeStartArray in interface StrictJsonWriter
      Parameters:
      name - the member name
    • writeBoolean

      public void writeBoolean(String name, boolean value)
      Deprecated.
      Description copied from interface: StrictJsonWriter
      Writes a a member with a boolean value to the writer.
      Specified by:
      writeBoolean in interface StrictJsonWriter
      Parameters:
      name - the member name
      value - the boolean value
    • writeNumber

      public void writeNumber(String name, String value)
      Deprecated.
      Description copied from interface: StrictJsonWriter
      Writes a member with a numeric value to the writer.
      Specified by:
      writeNumber in interface StrictJsonWriter
      Parameters:
      name - the member name
      value - the Double value, as a String so that clients can take full control over formatting
    • writeString

      public void writeString(String name, String value)
      Deprecated.
      Description copied from interface: StrictJsonWriter
      Writes a member with a string value to the writer.
      Specified by:
      writeString in interface StrictJsonWriter
      Parameters:
      name - the member name
      value - the String value
    • writeRaw

      public void writeRaw(String name, String value)
      Deprecated.
      Description copied from interface: StrictJsonWriter
      Writes a member with a raw value without quoting or escaping.
      Specified by:
      writeRaw in interface StrictJsonWriter
      Parameters:
      name - the member name
      value - the raw value
    • writeNull

      public void writeNull(String name)
      Deprecated.
      Description copied from interface: StrictJsonWriter
      Writes a member with a null value to the writer.
      Specified by:
      writeNull in interface StrictJsonWriter
      Parameters:
      name - the member name
    • writeName

      public void writeName(String name)
      Deprecated.
      Description copied from interface: StrictJsonWriter
      Writes the name of a member to the writer.
      Specified by:
      writeName in interface StrictJsonWriter
      Parameters:
      name - the member name
    • writeBoolean

      public void writeBoolean(boolean value)
      Deprecated.
      Description copied from interface: StrictJsonWriter
      Writes a boolean to the writer.
      Specified by:
      writeBoolean in interface StrictJsonWriter
      Parameters:
      value - the boolean value.
    • writeNumber

      public void writeNumber(String value)
      Deprecated.
      Description copied from interface: StrictJsonWriter
      Writes a number to the writer.
      Specified by:
      writeNumber in interface StrictJsonWriter
      Parameters:
      value - the Double value, as a String so that clients can take full control over formatting
    • writeString

      public void writeString(String value)
      Deprecated.
      Description copied from interface: StrictJsonWriter
      Writes a String to the writer.
      Specified by:
      writeString in interface StrictJsonWriter
      Parameters:
      value - the String value
    • writeRaw

      public void writeRaw(String value)
      Deprecated.
      Description copied from interface: StrictJsonWriter
      Writes a raw value without quoting or escaping.
      Specified by:
      writeRaw in interface StrictJsonWriter
      Parameters:
      value - the String value
    • writeNull

      public void writeNull()
      Deprecated.
      Description copied from interface: StrictJsonWriter
      Writes a null value to the writer.
      Specified by:
      writeNull in interface StrictJsonWriter
    • writeStartObject

      public void writeStartObject()
      Deprecated.
      Description copied from interface: StrictJsonWriter
      Writes the start of a JSON object to the writer.
      Specified by:
      writeStartObject in interface StrictJsonWriter
    • writeStartArray

      public void writeStartArray()
      Deprecated.
      Description copied from interface: StrictJsonWriter
      Writes the start of a array to the writer.
      Specified by:
      writeStartArray in interface StrictJsonWriter
    • writeEndObject

      public void writeEndObject()
      Deprecated.
      Description copied from interface: StrictJsonWriter
      Writes the end of a JSON object to the writer.
      Specified by:
      writeEndObject in interface StrictJsonWriter
    • writeEndArray

      public void writeEndArray()
      Deprecated.
      Description copied from interface: StrictJsonWriter
      Writes the end of a JSON array to the writer.
      Specified by:
      writeEndArray in interface StrictJsonWriter
    • isTruncated

      public boolean isTruncated()
      Deprecated.
      Return true if the output has been truncated due to exceeding the length specified in StrictCharacterStreamJsonWriterSettings.getMaxLength().
      Specified by:
      isTruncated in interface StrictJsonWriter
      Returns:
      true if the output has been truncated
      Since:
      3.7
      See Also: