• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

DataInputStream vs MappedByteBuffer

 
Maciej Miklas
Ranch Hand
Posts: 61
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
I have B&G and there is written, that data file is using DataInputStream format for bytes - nice for jdk1.0 but I would like to use MappedByteBuffer.
Have somebody done it also?

What about java and different byte notifications?

Thanks,
Maciej
 
Mihai Radulescu
Ranch Hand
Posts: 918
IntelliJ IDE Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Maciej,

the MappedByteBuffer is a nio class and i don't know if sun allows this (I mean nio classes), you can make a search on the ranch about the NIO and you'll get a lot of post about - the choice is yours.
As far as I know the NIO depends on the platform so ....

Why don't you use the RandomAccessFile ?


Regards M.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic