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. |
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, toStringpublic ReadConstrainedTextBuffer(StreamReadConstraints streamReadConstraints, BufferRecycler bufferRecycler)
protected void validateStringLength(int length)
throws StreamConstraintsException
JsonParseException
is thrown.validateStringLength in class TextBufferlength - Length of string in input unitsStreamConstraintsExceptionCopyright © 2008–2023 FasterXML. All rights reserved.