|
Dailydave
mailing list archives
Re: Java
From: Chris Eagle <cseagle () redshift com>
Date: Mon, 13 Nov 2006 16:29:47 -0800
Dave Aitel wrote:
Here I am, spending all day writing code in a language that is
statically typed. It's like eating all your food with a good helping
of sand. How does one convert a byte[] buf; into a String so you can
send it down the wire using a DataOutputStream class? Oooh, let's
chain a bunch of converters together. Blimey!
What is your goal on the remote side? Does it need to unmarshall as a
Java String? Or are you just trying to get the bytes on the wire?
former: dos.writeUTF(new String(buf));
later: dos.write(buf);
How many/what type of converters do you feel compelled to use?
Chris
_______________________________________________
Dailydave mailing list
Dailydave () lists immunitysec com
http://lists.immunitysec.com/mailman/listinfo/dailydave
By Date
By Thread
Current thread:
- Java Dave Aitel (Nov 13)
- Re: Java Chris Eagle (Nov 14)
|