java.lang.Object
tools.jackson.core.util.TextBuffer
tools.jackson.core.util.ReadConstrainedTextBuffer
-
Field Summary
Fields inherited from class tools.jackson.core.util.TextBuffer
MAX_SEGMENT_LEN, MIN_SEGMENT_LEN -
Constructor Summary
ConstructorsConstructorDescriptionReadConstrainedTextBuffer(StreamReadConstraints streamReadConstraints, BufferRecycler bufferRecycler) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidvalidateStringLength(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, aJacksonExceptionis thrown.Methods inherited from class tools.jackson.core.util.TextBuffer
_reportBufferOverflow, append, append, append, bufferRecycler, contentsAsArray, contentsAsDecimal, contentsAsDouble, 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, aJacksonExceptionis thrown.- Overrides:
validateStringLengthin classTextBuffer- Parameters:
length- Length of string in input units- Throws:
StreamConstraintsException
-