M
m.cantaloupe
I've tried to simplify my question as much as possible, so here we go:
If the PrintWriter class accepts and OutputStream object as an
argument, then why won't this work:
serverOut = new PrintWriter(connection.getOutputStream());
Instead I am forced to use:
serverOut = new PrintStream(connection.getOutputStream());
.... but I can't figure why. Anybody care to shed some light?
Cheers,
Marc.
If the PrintWriter class accepts and OutputStream object as an
argument, then why won't this work:
serverOut = new PrintWriter(connection.getOutputStream());
Instead I am forced to use:
serverOut = new PrintStream(connection.getOutputStream());
.... but I can't figure why. Anybody care to shed some light?
Cheers,
Marc.