|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
From: Alexej Muehlberg (alexej.muehlberg
nxp.com)
Date: Thu Nov 01 2007 - 03:33:45 CDT
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
> Hi
Hello
> I have a question regarding the concatenation of the small cap-files
> (header.cap, etc) in a raw .cap-file which are to become a GP
> specified .cap-file. When adding these together in java is it
> necessary to use FileOutputStream or can I just use a bytestream such
> as byte[]? I mean is there a finalize function of FileOutputStream
> that is necessary to be done to the file?
The .cap file is specificied in the Java Card 2.2.1 Virtual Machine
specification, Chapter 6.1.1 Containment in a JAR File, last paragraph:
" ..
All CAP file components are stored in a JAR file.
.. "
> Or can I just take the byte-code of these small .cap-files and do
> something like this: (this example is for the header.cap part only)
> System.arraycopy(HEADER_CAP_BYTE_VECTOR, 0, LOAD_BYTE_VECTOR, 0,
> HEADER_CAP_BYTE[].length)
> where the HEADER_CAP_BYTE_VECTOR and LOAD_BYTE_VECTOR are of the type
byte[].
> Anyone got some clues?
The easiest way is to just zip the CAP file components.
BR
Alex
To
muscle
lists.musclecard.com
cc
muscle-request
lists
.musclecard.com Subject
Muscle Digest, Vol 44, Issue 19
Sent by: Classification
muscle-bounces
lists
.musclecard.com
01.11.2007 03:00
Please respond to
muscle
lists.musclec
ard.com
Send Muscle mailing list submissions to
muscle
lists.musclecard.com
To subscribe or unsubscribe via the World Wide Web, visit
http://lists.drizzle.com/mailman/listinfo/muscle
or, via email, send a message with subject or body 'help' to
muscle-request
lists.musclecard.com
You can reach the person managing the list at
muscle-owner
lists.musclecard.com
When replying, please edit your Subject line so it is more specific
than "Re: Contents of Muscle digest..."
Today's Topics:
1. GP APDU raw .cap to GP .cap ( Johannes H?ier S?rensen )
----------------------------------------------------------------------
Message: 1
Date: Wed, 31 Oct 2007 17:27:32 +0100
From: " Johannes H?ier S?rensen " <johoso
gmail.com>
Subject: [Muscle] GP APDU raw .cap to GP .cap
To: MUSCLE <muscle
lists.musclecard.com>
Message-ID:
<46a024590710310927g1171d433k219a85c82bbaa365
mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1
Hi
I have a question regarding the concatenation of the small cap-files
(header.cap, etc) in a raw .cap-file which are to become a GP
specified .cap-file. When adding these together in java is it
necessary to use FileOutputStream or can I just use a bytestream such
as byte[]? I mean is there a finalize function of FileOutputStream
that is necessary to be done to the file?
Or can I just take the byte-code of these small .cap-files and do
something like this: (this example is for the header.cap part only)
System.arraycopy(HEADER_CAP_BYTE_VECTOR, 0, LOAD_BYTE_VECTOR, 0,
HEADER_CAP_BYTE[].length)
where the HEADER_CAP_BYTE_VECTOR and LOAD_BYTE_VECTOR are of the type
byte[].
Anyone got some clues?
Regards,
Johannes
------------------------------
_______________________________________________
Muscle mailing list
Muscle
lists.musclecard.com
http://lists.drizzle.com/mailman/listinfo/muscle
End of Muscle Digest, Vol 44, Issue 19
**************************************
The information contained in this message may be confidential and legally
privileged. The message is intended solely for the addressee(s). If you are
not the intended recipient, you are hereby notified that any use,
forwarding, dissemination, or reproduction of this message is strictly
prohibited and may be unlawful. If you are not the intended recipient,
please contact the sender by return e-mail and destroy all copies of the
original message.
_______________________________________________
Muscle mailing list
Muscle
lists.musclecard.com
http://lists.drizzle.com/mailman/listinfo/muscle
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]