Class StreamReadConstraints

java.lang.Object
com.fasterxml.jackson.core.StreamReadConstraints
All Implemented Interfaces:
Serializable

public class StreamReadConstraints extends Object implements Serializable
The constraints to use for streaming reads: used to guard against malicious input by preventing processing of "too big" input constructs (values, structures). Constraints are registered with TokenStreamFactory (such as JsonFactory); if nothing explicitly specified, default constraints are used.

Currently constrained aspects, with default settings, are:

Since:
2.15
See Also:
  • Field Details

  • Constructor Details

    • StreamReadConstraints

      @Deprecated protected StreamReadConstraints(int maxNestingDepth, long maxDocLen, int maxNumLen, int maxStringLen)
      Deprecated.
    • StreamReadConstraints

      protected StreamReadConstraints(int maxNestingDepth, long maxDocLen, int maxNumLen, int maxStringLen, int maxNameLen)
      Parameters:
      maxNestingDepth - Maximum input document nesting to allow
      maxDocLen - Maximum input document length to allow
      maxNumLen - Maximum number representation length to allow
      maxStringLen - Maximum String value length to allow
      maxNameLen - Maximum Object property name length to allow
      Since:
      2.16
  • Method Details