com.fasterxml.jackson.jr.private_.util.ReadConstrainedTextBuffer Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jackson-jr-all Show documentation
Show all versions of jackson-jr-all Show documentation
"Uber" jar that contains all Jackson jr components as well as underlying Jackson core
Streaming, in a single jar.
The newest version!
package com.fasterxml.jackson.core.util;
import com.fasterxml.jackson.core.StreamReadConstraints;
import 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