File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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());
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Fast reading/writing integers to file/stream