• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Knute Snortum
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Ganesh Patekar
  • Stephan van Hulst
  • Pete Letkeman
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Ron McLeod
  • Vijitha Kumara

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

 
Ranch Hand
Posts: 147
  • Mark post as helpful
  • send pies
  • 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
  • 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
  • Quote
  • Report post to moderator
You are right!
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!