Code example for AccessControlException

0
			// the first data block contain the length of the TLV + Tag bytes + length bytes. 
			overallLen = tempTlv.getValueLength() + tempTlv.getValueIndex();
			try { 
				stream.write(response.getData());
			} catch (IOException e) {
				throw new AccessControlException("GET DATA (specific) IO problem. " + e.getMessage() );
			} 
 
			int le;
			// send subsequent GET DATA (next) commands 
			while( stream.size() < overallLen ){
				le = overallLen - stream.size();
				if( le > _MAX_LEN ){
					le = _MAX_LEN;
				} 
		    	// send GET DATA (next) 
		    	apdu = (CommandApdu) mGetNext.clone();
		        apdu.setLe(le);
		        response = send(apdu);
				 
		        // OK