From fc0a78dd7bb1b575a55ae14b271bba081f90eca1 Mon Sep 17 00:00:00 2001 From: zzz <zzz@mail.i2p> Date: Sat, 31 Oct 2020 20:20:59 +0000 Subject: [PATCH] Util: Drop class deprecated 11 years ago --- .../util/CachingByteArrayOutputStream.java | 29 ------------------- 1 file changed, 29 deletions(-) delete mode 100644 core/java/src/net/i2p/util/CachingByteArrayOutputStream.java diff --git a/core/java/src/net/i2p/util/CachingByteArrayOutputStream.java b/core/java/src/net/i2p/util/CachingByteArrayOutputStream.java deleted file mode 100644 index 61ac5de225..0000000000 --- a/core/java/src/net/i2p/util/CachingByteArrayOutputStream.java +++ /dev/null @@ -1,29 +0,0 @@ -package net.i2p.util; - -import java.io.ByteArrayOutputStream; - -import net.i2p.data.ByteArray; - -/** - * 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. - * - * @deprecated unused - */ -@Deprecated -public class CachingByteArrayOutputStream extends ByteArrayOutputStream { - private ByteCache _cache; - private ByteArray _buf; - - public CachingByteArrayOutputStream(int cacheQuantity, int arraySize) { - super(0); - _cache = ByteCache.getInstance(cacheQuantity, arraySize); - _buf = _cache.acquire(); - super.buf = _buf.getData(); - } - - public void releaseBuffer() { _cache.release(_buf); } -} -- GitLab