Package com.fasterxml.jackson.core.util
Class ReadConstrainedTextBuffer
- java.lang.Object
-
- com.fasterxml.jackson.core.util.TextBuffer
-
- com.fasterxml.jackson.core.util.ReadConstrainedTextBuffer
-
public final class ReadConstrainedTextBuffer extends TextBuffer
-
-
Constructor Summary
Constructors Constructor Description ReadConstrainedTextBuffer(StreamReadConstraints streamReadConstraints, BufferRecycler bufferRecycler)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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, aJsonParseException
is thrown.-
Methods inherited from class com.fasterxml.jackson.core.util.TextBuffer
_reportBufferOverflow, append, append, append, bufferRecycler, contentsAsArray, contentsAsDecimal, 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 Detail
-
ReadConstrainedTextBuffer
public ReadConstrainedTextBuffer(StreamReadConstraints streamReadConstraints, BufferRecycler bufferRecycler)
-
-
Method Detail
-
validateStringLength
protected void validateStringLength(int length) throws StreamConstraintsException
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
-
-