aspose file tools*
The moose likes I/O and Streams and the fly likes Query regarding implmentation of writeXXX operations in DataOutPutStream Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » I/O and Streams
Bookmark "Query regarding implmentation of writeXXX operations in DataOutPutStream" Watch "Query regarding implmentation of writeXXX operations in DataOutPutStream" New topic
Author

Query regarding implmentation of writeXXX operations in DataOutPutStream

Vivek Kr Singh
Ranch Hand

Joined: Oct 12, 2007
Posts: 56
I am getting familiar serialization API's in JDK. I have a simple question regarding implementation of java.io.DataOutPutStream writeXXX operations.

Here is the implementation for this API


Why there is a bitwise & with 0xFF ?

Edit : out.write will only write a byte and bitwise & with 0xFF will return a byte

SCJP 1.4
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Query regarding implmentation of writeXXX operations in DataOutPutStream