|
@@ -24,7 +24,6 @@ package com.dmdirc.util.io;
|
24
|
24
|
|
25
|
25
|
import java.io.Closeable;
|
26
|
26
|
import java.io.IOException;
|
27
|
|
-import java.net.Socket;
|
28
|
27
|
|
29
|
28
|
/**
|
30
|
29
|
* Utilities for dealing with streams.
|
|
@@ -53,20 +52,4 @@ public final class StreamUtils {
|
53
|
52
|
}
|
54
|
53
|
}
|
55
|
54
|
|
56
|
|
- /**
|
57
|
|
- * Closes the stream if it is non-null, and ignores any IOExceptions
|
58
|
|
- * raised by doing so.
|
59
|
|
- *
|
60
|
|
- * @param stream The stream to be closed
|
61
|
|
- */
|
62
|
|
- public static void close(final Socket stream) {
|
63
|
|
- if (stream != null) {
|
64
|
|
- try {
|
65
|
|
- stream.close();
|
66
|
|
- } catch (IOException ex) {
|
67
|
|
- // Do nothing. We don't care.
|
68
|
|
- }
|
69
|
|
- }
|
70
|
|
- }
|
71
|
|
-
|
72
|
55
|
}
|