public AllAccessExporter(String input,byte[] cpData) throws NoSuchAlgorithmException, NoSuchPaddingException, IOException {
  mCipher=Cipher.getInstance("AES/CTR/NoPadding");
  mKeySpec=new SecretKeySpec(cpData,"AES");
  mInput=new FileInputStream(input);
  mMagicNumber=new byte[4];
  if (mInput.read(mMagicNumber) != 4)   mMagicNumber=null;
}

public AllAccessExporter ( String input , byte [ ] cpData ) throws NoSuchAlgorithmException , NoSuchPaddingException , IOException { mCipher = Cipher . getInstance ( "AES/CTR/NoPadding" ) ; mKeySpec = new SecretKeySpec ( cpData , "AES" ) ; mInput = new FileInputStream ( input ) ; mMagicNumber = new byte [ 4 ] ; if ( mInput . read ( mMagicNumber ) != 4 ) mMagicNumber = null ; }
creates a new exporter for allaccess files
