[e-lang] Version 1.0 of Joe-E library released

David Hopwood david.hopwood at industrial-designers.co.uk
Mon Jun 4 19:45:21 EDT 2007


Tyler Close wrote:
> ByteArray.writeObject() should do:
> 
>     out.write(bytes);
> 
> instead of:
> 
>     for (byte c : bytes) {
>         out.writeByte(c);
>     }
>
> Similarly in readObject().

Note that while "write(byte[])" is guaranteed to write all of the bytes
specified (or throw an exception), the same is not true for calls to read
on an InputStream.

-- 
David Hopwood <david.hopwood at industrial-designers.co.uk>



More information about the e-lang mailing list