org.apache.juli.logging.com.fasterxml.jackson.core.util.ReadConstrainedTextBuffer Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tomcat10-slf4j-logback Show documentation
Show all versions of tomcat10-slf4j-logback Show documentation
Tomcat10 Slf4j Logback Integration
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);
}
}