Package net.i2p.util

Class CachingByteArrayOutputStream

  • All Implemented Interfaces:
    Closeable, Flushable, AutoCloseable

    @Deprecated
    public class CachingByteArrayOutputStream
    extends ByteArrayOutputStream
    Deprecated.
    unused
    simple extension to the baos to try to use a ByteCache for its internal buffer. This caching only works when the array size provided is sufficient for the entire buffer. After doing what needs to be done (e.g. write(foo); toByteArray();), call releaseBuffer to put the buffer back into the cache.
    • Constructor Detail

      • CachingByteArrayOutputStream

        public CachingByteArrayOutputStream​(int cacheQuantity,
                                            int arraySize)
        Deprecated.
    • Method Detail

      • releaseBuffer

        public void releaseBuffer()
        Deprecated.