Exemplo n.º 1
0
 /**
  * Retrieves data from the server.
  *
  * @param bi buffered server input
  * @param os output stream
  * @throws IOException I/O exception
  */
 protected static void receive(final BufferInput bi, final OutputStream os) throws IOException {
   final DecodingInput di = new DecodingInput(bi);
   for (int b; (b = di.read()) != -1; ) os.write(b);
 }