• 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!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic