• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Fast reading/writing integers to file/stream

 
Andrzej Borucki
Ranch Hand
Posts: 83
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 83
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 83
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In example http://www.javadb.com/write-to-file-using-bufferedoutputstream is writing text:
bufferedOutput.write("Line two".getBytes());
bufferedOutput.write("\n".getBytes());
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic