()
| 54 | } |
| 55 | |
| 56 | synchronized void close() { |
| 57 | OutputStream os2 = os; |
| 58 | if (os2 == null) |
| 59 | return; |
| 60 | |
| 61 | os = null; |
| 62 | |
| 63 | try { |
| 64 | os2.close(); |
| 65 | } catch (IOException e) { |
| 66 | } |
| 67 | |
| 68 | notifyAll(); |
| 69 | } |
| 70 | |
| 71 | synchronized boolean drain() { |
| 72 | final long TIMEOUT = 5000; |