Reads in until end of stream.
(InputStream in)
| 810 | |
| 811 | /** Reads {@code in} until end of stream. */ |
| 812 | public static void exhaust(InputStream in) throws IOException { |
| 813 | byte[] buf = new byte[256]; |
| 814 | while (in.read(buf) != -1) {} |
| 815 | } |
| 816 | |
| 817 | /** |
| 818 | * Some status codes from the control plane are not appropritate to use in the data plane. If one |