com.fasterxml.jackson.core.util

Class BufferRecycler



  • public class BufferRecycler
    extends Object
    This is a small utility class, whose main functionality is to allow simple reuse of raw byte/char buffers. It is usually used through ThreadLocal member of the owning class pointing to instance of this class through a SoftReference. The end result is a low-overhead GC-cleanable recycling: hopefully ideal for use by stream readers.

Copyright © 2012-2015 FasterXML. All Rights Reserved.