[Muscle] Re: GP APDU raw .cap to GP .cap

Martin Buechler martin.buechler at vrweb.de
Fri Nov 2 01:52:13 PDT 2007


>
> 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[].
>
Should be ok liek that.

> Anyone got some clues?
>
They are bytewise appended in 'reference order'.
Take a look at the 'Create your own load files'-section of the Readme  
in this package http://home.vrweb.de/~martin.buechler/smartcard/ 
CFlexAccess32Loader.zip.
Regards
Martin



More information about the Muscle mailing list