Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

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

 
Alibabra Sanjie
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
 
Ko Ko Naing
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!
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!