Using io.Outputstream, I need to write some 32 bit integer to the
stream. any value is fine except -2147483648 and 2147483648. I tried
to just mask 32 bits and cut them in bytes. The bitstream is just
ended with them without any warning.
Thank you for taking time.
Dirk Gerrit Oort - 30 Sep 2004 12:45 GMT
try to use java.io.Data|OutputStream it has writeInt and writeLong. On the
other site you can use DataInputStream with readInt or readLong

Signature
D.G. Oort
> Using io.Outputstream, I need to write some 32 bit integer to the
> stream. any value is fine except -2147483648 and 2147483648. I tried
> to just mask 32 bits and cut them in bytes. The bitstream is just
> ended with them without any warning.
>
> Thank you for taking time.
Boudewijn Dijkstra - 30 Sep 2004 15:44 GMT
> Using io.Outputstream, I need to write some 32 bit integer to the
> stream. any value is fine except -2147483648 and 2147483648. I tried
> to just mask 32 bits and cut them in bytes. The bitstream is just
> ended with them without any warning.
>
> Thank you for taking time.
2147483648L == 0x100000000L