aboutsummaryrefslogtreecommitdiffstats
path: root/netx/net/sourceforge/jnlp/util/StreamUtils.java
diff options
context:
space:
mode:
Diffstat (limited to 'netx/net/sourceforge/jnlp/util/StreamUtils.java')
-rw-r--r--netx/net/sourceforge/jnlp/util/StreamUtils.java13
1 files changed, 0 insertions, 13 deletions
diff --git a/netx/net/sourceforge/jnlp/util/StreamUtils.java b/netx/net/sourceforge/jnlp/util/StreamUtils.java
index 6692d1c..c498b7b 100644
--- a/netx/net/sourceforge/jnlp/util/StreamUtils.java
+++ b/netx/net/sourceforge/jnlp/util/StreamUtils.java
@@ -45,19 +45,6 @@ import java.io.InputStreamReader;
public class StreamUtils {
- /**
- * Ensure a stream is fully read, required for correct behaviour in some
- * APIs, namely HttpURLConnection.
- * @throws IOException
- */
- public static void consumeAndCloseInputStream(InputStream in) throws IOException {
- byte[] throwAwayBuffer = new byte[256];
- while (in.read(throwAwayBuffer) > 0) {
- /* ignore contents */
- }
- in.close();
- }
-
/***
* Closes a stream, without throwing IOException.
* In case of IOException, prints the stack trace to System.err.