This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes I/O and Streams and the fly likes Fast reading/writing integers to file/stream 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 "Fast reading/writing integers to file/stream" Watch "Fast reading/writing integers to file/stream" New topic
Author

Fast reading/writing integers to file/stream

Andrzej Borucki
Ranch Hand

Joined: Aug 24, 2013
Posts: 49
For example, in binary file is

How to read/write it to memory with big performance? Can I choose Little Endian/Big Endian? Big Endian is default and is faster?
Andrzej Borucki
Ranch Hand

Joined: Aug 24, 2013
Posts: 49
Andrzej Borucki wrote:
How to read/write it to memory with big performance? Can I choose Little Endian/Big Endian? Big Endian is default and is faster?

How to read/write chars as UTF8?
Andrzej Borucki
Ranch Hand

Joined: Aug 24, 2013
Posts: 49
In example http://www.javadb.com/write-to-file-using-bufferedoutputstream is writing text:
bufferedOutput.write("Line two".getBytes());
bufferedOutput.write("\n".getBytes());
 
GeeCON Prague 2014
 
subject: Fast reading/writing integers to file/stream