Skip to Main Content

Java Card

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

header component structure reading

litpuvnMay 5 2011 — edited May 11 2011
Hi All,

I am trying to create a tool to read Header.cap file.

When i look at the cap header file format, (Chapter 6, JCVM 2.2.2) i see that the "flags" item is:
HeaderComponent
{
...
u1 flags
...
}

And in the explanation of JCVM, there are three possible flags (ACC_INT , ACC_EXPORT, ACC_APPLET ) with its corresponding value (0x01, 0x02, 0x04). Next, the docs saying, the ACC_EXPORT flag has value of 1 if Export Component is included in this file and 0 otherwise.

I don't understand why there are other values of ACC_EXPORT beside the value 0x02?

Because, when i read the inputstream if Header.cap, the flags is 1 byte, and it gives one value. I guess this value is to say type of flag (ACC_INT or ACC_EXPORT or ACC_APPLET). But It seems wrong because of the value 1 or 0 as i said above.

Could you give me a hint?

Thank you very much,

regards

-Hoang Long
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 8 2011
Added on May 5 2011
5 comments
162 views