• 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

Not support the float-point methods in io package of MIDP 2.0

 
Ranch Hand
Posts: 147
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The new feature of the MIDP 2.0 is to support the float-point. The float-pint support methods are added in the classes in MIDP 2.0, like the counter part in J2SE. But the io package of MIDP 2.0 still not support the float-point, read/write methods. e.g: the DataInput and DataOutput do not have read/write float-point methods (the J2SE io package do support the float-point) Correct me if I am wrong
 
Ranch Hand
Posts: 3178
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Alibabra Sanjie:
But the io package of MIDP 2.0 still not support the float-point, read/write methods. e.g: the DataInput and DataOutput do not have read/write float-point methods (the J2SE io package do support the float-point)



DataInput and DataOutput interfaces are of Generic Connection Framework of CLDC specification... So they are in java.io package of CLDC API... You can find the floating point supported methods like readFloat, writeFloat in CLDC 1.1 API... You cannot even find java.io package in MIDP 2.0 API, because it is not mandated by MIDP 2.0, but CLDC 1.1

Hope it helps...
 
Alibabra Sanjie
Ranch Hand
Posts: 147
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You are right!
 
reply
    Bookmark Topic Watch Topic
  • New Topic