Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / First Aid / September 2004

Tip: Looking for answers? Try searching our database.

help about bitstream writer

Thread view: 
jin - 29 Sep 2004 16:14 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.
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


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.