• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

DataInputStream vs MappedByteBuffer

 
Ranch Hand
Posts: 61
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 918
IntelliJ IDE Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic