Code example for FileReader

Methods: close

0
				.findViewById(R.id.editText1);
		txt.setText(dir);
	} 
 
	public SubjectPublicKeyInfo test5(String path) throws java.lang.Exception {
		FileReader fileReader = new FileReader(path);
		PEMParser p = new PEMParser(fileReader);
		try { 
			// JcaPEMKeyConverter converter = new JcaPEMKeyConverter() 
			// .setProvider("BC"); 
			// return converter 
			// .getPublicKey((SubjectPublicKeyInfo) p.readObject()); 
			return (SubjectPublicKeyInfo) p.readObject();
		} finally { 
			try { 
				fileReader.close();
			} catch (java.lang.Exception ex) {
			} 
		} 
	}