public final class ReadConstrainedTextBuffer extends TextBuffer
Constructor and Description |
---|
ReadConstrainedTextBuffer(StreamReadConstraints streamReadConstraints,
BufferRecycler bufferRecycler) |
Modifier and Type | Method and Description |
---|---|
protected void |
validateStringLength(int length)
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. |
_reportBufferOverflow, append, append, append, contentsAsArray, contentsAsDecimal, contentsAsDouble, contentsAsDouble, contentsAsFloat, contentsAsFloat, contentsAsInt, contentsAsLong, contentsAsString, contentsToWriter, emptyAndGetCurrentSegment, ensureNotShared, expandCurrentSegment, expandCurrentSegment, finishAndReturn, finishCurrentSegment, fromInitial, getBufferWithoutReset, getCurrentSegment, getCurrentSegmentSize, getTextBuffer, getTextOffset, hasTextAsCharacters, releaseBuffers, resetWith, resetWithCopy, resetWithCopy, resetWithEmpty, resetWithShared, resetWithString, setCurrentAndReturn, setCurrentLength, size, toString
public ReadConstrainedTextBuffer(StreamReadConstraints streamReadConstraints, BufferRecycler bufferRecycler)
protected void validateStringLength(int length) throws StreamConstraintsException
JsonParseException
is thrown.validateStringLength
in class TextBuffer
length
- Length of string in input unitsStreamConstraintsException
Copyright © 2008–2023 FasterXML. All rights reserved.