Lines Matching defs:ne

77     // value of ne
78 private transient int ne;
190 * @param ne the maximum number of expected data bytes in a response APDU
192 * @throws IllegalArgumentException if ne is negative or greater than
195 public CommandAPDU(int cla, int ins, int p1, int p2, int ne) {
196 this(cla, ins, p1, p2, null, 0, 0, ne);
263 * @param ne the maximum number of expected data bytes in a response APDU
266 * or if ne is negative or greater than 65536
268 public CommandAPDU(int cla, int ins, int p1, int p2, byte[] data, int ne) {
269 this(cla, ins, p1, p2, data, 0, arrayLength(data), ne);
301 this.ne = (l1 == 0) ? 256 : l1;
315 this.ne = (l2 == 0) ? 256 : l2;
329 this.ne = (l2 == 0) ? 65536 : l2;
347 this.ne = (l3 == 0) ? 65536 : l3;
373 * @param ne the maximum number of expected data bytes in a response APDU
378 * or if ne is negative or greater than 65536,
382 int dataOffset, int dataLength, int ne) {
387 if (ne < 0) {
388 throw new IllegalArgumentException("ne must not be negative");
390 if (ne > 65536) {
391 throw new IllegalArgumentException("ne is too large");
393 this.ne = ne;
396 if (ne == 0) {
402 if (ne <= 256) {
405 byte len = (ne != 256) ? (byte)ne : 0;
413 if (ne == 65536) {
417 l1 = (byte)(ne >> 8);
418 l2 = (byte)ne;
427 if (ne == 0) {
448 if ((dataLength <= 255) && (ne <= 256)) {
455 apdu[apdu.length - 1] = (ne != 256) ? (byte)ne : 0;
465 if (ne != 65536) {
467 apdu[leOfs] = (byte)(ne >> 8);
468 apdu[leOfs + 1] = (byte)ne;
550 return ne;
568 return "CommmandAPDU: " + apdu.length + " bytes, nc=" + nc + ", ne=" + ne;