All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.apache.juli.logging.com.fasterxml.jackson.core.util.ReadConstrainedTextBuffer Maven / Gradle / Ivy

There is a newer version: 10.1.24
Show newest version
package org.apache.juli.logging.com.fasterxml.jackson.core.util;

import org.apache.juli.logging.com.fasterxml.jackson.core.StreamReadConstraints;
import org.apache.juli.logging.com.fasterxml.jackson.core.exc.StreamConstraintsException;

public final class ReadConstrainedTextBuffer extends TextBuffer {

    private final StreamReadConstraints _streamReadConstraints;

    public ReadConstrainedTextBuffer(StreamReadConstraints streamReadConstraints, BufferRecycler bufferRecycler) {
        super(bufferRecycler);
        _streamReadConstraints = streamReadConstraints;
    }

    /*
    /**********************************************************************
    /* Convenience methods for validation
    /**********************************************************************
     */

    /**
     * {@inheritDoc}
     */
    @Override
    protected void validateStringLength(int length) throws StreamConstraintsException
    {
        _streamReadConstraints.validateStringLength(length);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy