code: public static String readLine(InputStream in, byte[] buffer)
          throws IllegalArgumentException, IOException
      {
          return readLine(in, buffer, -1);
      }
docs: Reads a line from an HTTP InputStream, using the given buffer for
  temporary storage.
  
  @param in stream to read from
  @param buffer temporary buffer to use
  @throws IllegalArgumentException if the given InputStream doesn't
  support marking