Takes the contents of this stream and writes it to the output stream out. @param out an OutputStream on which to write the contents of this stream. @throws IOException if an error occurs while writing to out.
(OutputStream out)
| 236 | * if an error occurs while writing to {@code out}. |
| 237 | */ |
| 238 | public synchronized void writeTo(OutputStream out) throws IOException { |
| 239 | out.write(buf, 0, count); |
| 240 | } |
| 241 | } |