Class UTF8DataInputWithDocLengthJsonParser

All Implemented Interfaces:
Closeable, AutoCloseable, Versioned

public class UTF8DataInputWithDocLengthJsonParser extends UTF8DataInputJsonParser
Specialization of UTF8DataInputJsonParser that tracks the number of bytes read and enforces the StreamReadConstraints.getMaxDocumentLength() limit.

Byte tracking is achieved by overriding readUnsignedByte(): every call increments _bytesRead so that validation can be performed at token boundaries in nextToken().

Since:
3.2