Unlock instant, AI-driven research and patent intelligence for your innovation.

Method and device for CAP file comparison in Java Card

A file and JAVA technology, which is applied in the field of CAP file comparison, can solve the problems that CAP file direct comparison cannot be performed, and the efficiency is low.

Active Publication Date: 2016-04-27
BEIJING CEC HUADA ELECTRONIC DESIGN CO LTD
View PDF5 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

In the prior art, viewing the content of CAP files can only be performed in bytes, which is inefficient, and the direct comparison of CAP files cannot be performed at all. Therefore, a convenient and fast method and device for comparing CAP files is needed, so as to measure and judge CAP files. Advantages and disadvantages of foreign Java virtual machines

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method and device for CAP file comparison in Java Card
  • Method and device for CAP file comparison in Java Card

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0027] In order to solve the problem that viewing the content of CAP files can only be performed in bytes, the efficiency is low, and the direct comparison of CAP files cannot be carried out at all, the example of the present invention provides a method for comparing CAP files in JavaCard, which can be viewed intuitively CAP file content, and compare between different CAP files. Specifically, the method includes:

[0028] Step 101, read the content of the CAP file;

[0029] Read two CAP files produced by different JAVA converters, such as Cap1 and Cap2, and decompress the read files according to the JAVA specification to form a binary data file. For example, the reading process can be implemented by the following command:

[0030] Capcap1 = newCapFileParser().parser(fileName1);

[0031] Capcap2 = newCapFileParser().parser(fileName2);

[0032] Step 102, analyzing the read CAP file;

[0033] Analyze the read two CAP files according to the JAVA card specification. The CAP f...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention provides a method for CAP file comparison in Java Card. The method comprises the steps of reading the content of CAP files; parsing the read CAP files; comparing the parsed files. The invention also provides a device for CAP file comparison in Java Card. With the method and the device, CAP files can be compared conveniently and estimation for JAVA Card converters can be more accurate and faster.

Description

technical field [0001] The invention relates to a method and device for comparing CAP files in a JavaCard. Background technique [0002] The CAP file is the output file of the off-card Java virtual machine, that is, the target file generated by the Applet application on the off-card Java virtual machine. [0003] An Applet application is an application on the smart card, which is written in the Java programming language and can run in the JavaCard Runtime Environment (JCRE). [0004] The JavaCard Virtual Machine (JCVM) is implemented as two separate parts, including the JavaCard Bytecode Interpreter and the JavaCard Converter. The on-card part of the JavaCard Virtual Machine is the JavaCard Bytecode Interpreter. The outside of the card is divided into JavaCard converters, which run on PCs or workstations. The target file generated by the converter is the CAP file. The on-card and off-card parts together realize all the functions of the virtual machine. [0005] A CAP fil...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F9/45G06F11/36
Inventor 黄钰
Owner BEIJING CEC HUADA ELECTRONIC DESIGN CO LTD