> 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
[email protected]
cc
[EMAIL PROTECTED]
.musclecard.com Subject
Muscle Digest, Vol 44, Issue 19
Sent by: Classification
[EMAIL PROTECTED]
.musclecard.com
01.11.2007 03:00
Please respond to
[EMAIL PROTECTED]
ard.com
Send Muscle mailing list submissions to
[email protected]
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
[EMAIL PROTECTED]
You can reach the person managing the list at
[EMAIL PROTECTED]
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 " <[EMAIL PROTECTED]>
Subject: [Muscle] GP APDU raw .cap to GP .cap
To: MUSCLE <[email protected]>
Message-ID:
<[EMAIL PROTECTED]>
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
[email protected]
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.<<inline: graycol.gif>>
<<inline: pic17628.gif>>
<<inline: ecblank.gif>>
_______________________________________________ Muscle mailing list [email protected] http://lists.drizzle.com/mailman/listinfo/muscle
