public interface BufferProvider
Buffer instances on demand. Since
JsonParser always only uses one buffer at a
time, for the sake of performance, the buffer provider may always return
the same Buffer instance but reset it (or clear its contents) when
needed.| Modifier and Type | Method and Description |
|---|---|
Buffer |
newBuffer()
Creates a new
Buffer instance. |
Buffer newBuffer()
Buffer instance. Since
JsonParser always only uses one buffer at a
time, for the sake of performance, implementations of this method may
always return the same Buffer instance but reset it (or clear its
contents) when needed.