FileDocCategorySizeDatePackage
ApduList.javaAPI DocAndroid 5.1 API1383Thu Mar 12 22:22:10 GMT 2015android.nfc

ApduList

public class ApduList extends Object implements android.os.Parcelable
hide

Fields Summary
private ArrayList
commands
public static final Parcelable.Creator
CREATOR
Constructors Summary
public ApduList()


      
    
private ApduList(android.os.Parcel in)


       
        int count = in.readInt();

        for (int i = 0 ; i < count ; i++) {

            int length = in.readInt();
            byte[] cmd = new byte[length];
            in.readByteArray(cmd);
            commands.add(cmd);
        }
    
Methods Summary
public voidadd(byte[] command)

        commands.add(command);
    
public intdescribeContents()

        return 0;
    
public java.util.Listget()

        return commands;
    
public voidwriteToParcel(android.os.Parcel dest, int flags)

        dest.writeInt(commands.size());

        for (byte[] cmd : commands) {
            dest.writeInt(cmd.length);
            dest.writeByteArray(cmd);
        }