package uk.co.mmscomputing.device.twain; import java.util.*; class TwainArray extends TwainContainer{ // TWON_ARRAY. Container for array of values (a simplified TW_ENUMERATION) /* typedef struct { TW_UINT16 ItemType; TW_UINT32 NumItems; // How many items in ItemList TW_UINT8 ItemList[1]; // Array of ItemType values starts here } TW_ARRAY, FAR * pTW_ARRAY; */ int count; Vector items=new Vector(); TwainArray(int cap,byte[] container){ // TW_ARRAY super(cap,container); count = jtwain.getINT32(container,2); for(int i=0,off=6;i