From 507c1d55da1eef82fc1defd03fd5e8cb72193133 Mon Sep 17 00:00:00 2001 From: zzz Date: Mon, 12 Feb 2018 19:32:45 +0000 Subject: [PATCH] Util: Drop deprecated BigPipedInputStream --- .../src/net/i2p/util/BigPipedInputStream.java | 32 ------------------- 1 file changed, 32 deletions(-) delete mode 100644 core/java/src/net/i2p/util/BigPipedInputStream.java diff --git a/core/java/src/net/i2p/util/BigPipedInputStream.java b/core/java/src/net/i2p/util/BigPipedInputStream.java deleted file mode 100644 index a5a25a3f3..000000000 --- a/core/java/src/net/i2p/util/BigPipedInputStream.java +++ /dev/null @@ -1,32 +0,0 @@ -package net.i2p.util; - -import java.io.PipedInputStream; - -/** - * We are now Java 6 minimum. Just use PipedInputStream. - * - * Java 1.5 PipedInputStream buffers are only 1024 bytes; our I2CP messages are typically 1730 bytes, - * thus causing thread blockage before the whole message is transferred. - * We can specify buffer size in 1.6 but not in 1.5. - * - * Until we switch to Java 1.6 - - * http://javatechniques.com/blog/low-memory-deep-copy-technique-for-java-objects/ - * - * Moved from InternalServerSocket. - * @since 0.8.9 - * @deprecated scheduled for removal in 0.9.34 - */ -@Deprecated -public class BigPipedInputStream extends PipedInputStream { - - private static final int PIPE_SIZE = 64*1024; - - /** default size 64K */ - public static PipedInputStream getInstance() { - return getInstance(PIPE_SIZE); - } - - public static PipedInputStream getInstance(int size) { - return new PipedInputStream(size); - } -}