Package com.fasterxml.jackson.core.util
Class ReadConstrainedTextBuffer
java.lang.Object
com.fasterxml.jackson.core.util.TextBuffer
com.fasterxml.jackson.core.util.ReadConstrainedTextBuffer
-
Constructor Summary
ConstructorDescriptionReadConstrainedTextBuffer
(StreamReadConstraints streamReadConstraints, BufferRecycler bufferRecycler) -
Method Summary
Modifier and TypeMethodDescriptionprotected 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, aJsonParseException
is thrown.Methods inherited from class com.fasterxml.jackson.core.util.TextBuffer
_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
-
Constructor Details
-
ReadConstrainedTextBuffer
public ReadConstrainedTextBuffer(StreamReadConstraints streamReadConstraints, BufferRecycler bufferRecycler)
-
-
Method Details
-
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, aJsonParseException
is thrown.- Overrides:
validateStringLength
in classTextBuffer
- Parameters:
length
- Length of string in input units- Throws:
StreamConstraintsException
-