[EMAIL PROTECTED] wrote: > >yes, that does indeed work. however, i find it confusing. perhaps the api > doc > >for append should mention that it only can be used for apdu's whose > constructor > >took int parameter. pretty awkward, isn't it? > > Actually, the behavior of append() does not depend on the constructor that > was used, but on whether the data to be appended still fits into the APDU. > > If you create an empty APDU using the constructor that takes an int, data > can be appended. > If you create a complete APDU using the constructor that takes a byte array > with the content the APDU shall have, no data can be appended. arguably, when i call "new CommandAPDU(new byte[16])" i create an empty apdu to which i expect to be able to append, much as i would using the constuctor with int. at the very least, the api doc has to spell it out. still, imho, using the name append is misleading, as i would expect the behaviour found in StringBuffer append(). -a > > > Best regards, > > Thomas > > Thomas Schaeck > IBM Pervasive Computing Division - Smart Card Solutions > E-mail: [EMAIL PROTECTED] Tel.: ++49-7031-16-3479 Fax.: > ++49-7031-16-4888 > Address: IBM Deutschland Entwicklung GmbH, Schoenaicher Str. 220, 71032 > Boeblingen, Germany > > Visit the OpenCard Framework's WWW site at http://www.opencard.org/ for > access to documentation, code, presentations, and OCF announcements. > ----------------------------------------------------------------------------- > To unsubscribe from the OCF Mailing list, send a mail to > "[EMAIL PROTECTED]" with the word "unsubscribe" in the BODY of the > message. -- Aaron Stromas | "Tick-tick-tick!!!... ja, Pantani is weg...." Oracle Corp. | BRTN commentator, +1 703 708 6821 | L'Alpe d'Huez, 1995 Tour de France
begin:vcard n:Stromas;Aaron tel;fax:+1 703-708 7922 tel;home:+1 301 493 4933 tel;work:+1 703 708 6821 x-mozilla-html:TRUE url:http://www.oracle.com org:Oracle;Advanced Technology Solutions adr:;;196 Van Buren Street;Herndon;VA;22070;USA version:2.1 email;internet:[EMAIL PROTECTED] title:Senior Principal consultant x-mozilla-cpt:;0 fn:Stromas, Aaron end:vcard
