public class StreamReadConstraints extends Object
| Modifier and Type | Field and Description |
|---|---|
protected int |
_maxNestingDepth |
static int |
DEFAULT_MAX_DEPTH
Default setting for maximum depth: see
Builder#maxNestingDepth(int) for details. |
static String |
JACKSON_CORE_CONSTRAINT_MAX_DEPTH |
| Constructor and Description |
|---|
StreamReadConstraints(int defaultMaxDepth) |
| Modifier and Type | Method and Description |
|---|---|
static StreamReadConstraints |
defaults() |
static void |
main(String[] args) |
void |
validateNestingDepth(int depth)
Convenience method that can be used to verify that the nesting depth does not exceed the maximum specified by this
constraints object: if it does, a
StreamConstraintsException is thrown. |
public static final String JACKSON_CORE_CONSTRAINT_MAX_DEPTH
public static final int DEFAULT_MAX_DEPTH
Builder#maxNestingDepth(int) for details.protected final int _maxNestingDepth
public static StreamReadConstraints defaults()
public void validateNestingDepth(int depth)
throws StreamConstraintsException
StreamConstraintsException is thrown.depth - count of unclosed objects and arraysStreamConstraintsException - If depth exceeds maximumpublic static void main(String[] args)
Copyright © 2025 JBoss by Red Hat. All rights reserved.