Top Fields Constructors Methods
com.fasterxml.jackson.core.util

public final Class ReadConstrainedTextBuffer

extends TextBuffer
Class Inheritance
Imports
com.fasterxml.jackson.core.StreamReadConstraints, com.fasterxml.jackson.core.exc.StreamConstraintsException

Field Summary

Modifier and TypeField and Description
private final StreamReadConstraints
Inherited from com.fasterxml.jackson.core.util.TextBuffer:
MAX_SEGMENT_LENMIN_SEGMENT_LENNO_CHARS

Constructor Summary

AccessConstructor and Description
public
ReadConstrainedTextBuffer(StreamReadConstraints streamReadConstraints, BufferRecycler bufferRecycler)

Method Summary

Modifier and TypeMethod and Description
protected void
validateStringLength(int
Length of string in input units
length
)

Overrides com.fasterxml.jackson.core.util.TextBuffer.validateStringLength.

Convenience method that can be used to verify that a String of specified length does not exceed maximum specific by this constraints object: if it does, a JsonParseException is thrown.
Inherited from com.fasterxml.jackson.core.util.TextBuffer:
_reportBufferOverflowappendappendappendcontentsAsArraycontentsAsDecimalcontentsAsDoublecontentsAsDoublecontentsAsFloatcontentsAsFloatcontentsAsIntcontentsAsLongcontentsAsStringcontentsToWriteremptyAndGetCurrentSegmentensureNotSharedexpandCurrentSegmentexpandCurrentSegmentfinishAndReturnfinishCurrentSegmentfromInitialgetBufferWithoutResetgetCurrentSegmentgetCurrentSegmentSizegetTextBuffergetTextOffsethasTextAsCharactersreleaseBuffersresetWithresetWithCopyresetWithCopyresetWithEmptyresetWithSharedresetWithStringsetCurrentAndReturnsetCurrentLengthsizetoString

Field Detail

_streamReadConstraintsback to summary
private final StreamReadConstraints _streamReadConstraints

Constructor Detail

ReadConstrainedTextBufferback to summary
public ReadConstrainedTextBuffer(StreamReadConstraints streamReadConstraints, BufferRecycler bufferRecycler)

Method Detail

validateStringLengthback to summary
protected void validateStringLength(int length) throws StreamConstraintsException

Overrides com.fasterxml.jackson.core.util.TextBuffer.validateStringLength.

Doc from com.fasterxml.jackson.core.util.TextBuffer.validateStringLength.

Convenience method that can be used to verify that a String of specified length does not exceed maximum specific by this constraints object: if it does, a JsonParseException is thrown.

Parameters
length:int

Length of string in input units

Annotations
@Override