Code example for Charset

Methods: newDecoder

0
	private String _keyAlgorithm = null;
	private Context _context = null;
	private static CharSequence BEGIN_PK = "-----BEGIN PRIVATE KEY-----";
	private static CharSequence END_PK = "-----END PRIVATE KEY-----";
	private static final Charset CHARSET = Charset.forName("ISO-8859-1");
	private static final CharsetDecoder DECODER = CHARSET.newDecoder();
	 
	private Alice(){} 
	 
	public static Alice createFromNonSecureMedium(byte[] encoded, Context context){
		String digest = getMD5Digest64(encoded);
		String[] projection = new String[] {
			    BaseColumns._ID,
			    Provider.CONTACT_ID_COLUMN, 
			    Provider.DIGEST_COLUMN, 
			    Provider.PUBLIC_KEY_ALGORITHM_COLUMN 
			}; 
		String selection = Provider.DIGEST_COLUMN+" = '"+digest+"'";
		/*Provider pd = new Provider(); 
		pd.onCreate(); 
		Cursor cursor = pd.query(Provider.CONTENT_URI, projection, selection, null, null, null,