public static final class StreamReadConstraints.Builder extends Object
| Modifier and Type | Method and Description |
|---|---|
StreamReadConstraints |
build() |
StreamReadConstraints.Builder |
maxNestingDepth(int maxNestingDepth)
Sets the maximum nesting depth.
|
StreamReadConstraints.Builder |
maxNumberLength(int maxNumLen)
Sets the maximum number length (in chars or bytes, depending on input context).
|
StreamReadConstraints.Builder |
maxStringLength(int maxStringLen)
Sets the maximum string length (in chars or bytes, depending on input context).
|
public StreamReadConstraints.Builder maxNestingDepth(int maxNestingDepth)
maxNestingDepth - the maximum depthIllegalArgumentException - if the maxNestingDepth is set to a negative valuepublic StreamReadConstraints.Builder maxNumberLength(int maxNumLen)
maxNumLen - the maximum number length (in chars or bytes, depending on input context)IllegalArgumentException - if the maxNumLen is set to a negative valuepublic StreamReadConstraints.Builder maxStringLength(int maxStringLen)
Setting this value to lower than the maxNumberLength(int) is not recommended.
maxStringLen - the maximum string length (in chars or bytes, depending on input context)IllegalArgumentException - if the maxStringLen is set to a negative valuepublic StreamReadConstraints build()
Copyright © 2008–2023 FasterXML. All rights reserved.