public void serializeConditionalPermissionInfos(Serializable o) throws IOException { FileOutputStream fos = new FileOutputStream(new File(permissionDir, CONDPERMS)); ObjectOutputStream oos = new ObjectOutputStream(fos); oos.writeObject(o); oos.close();
public void serializeConditionalPermissionInfos(Vector v) throws IOException { BufferedWriter writer = null; try { writer = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(new File(permissionDir, CONDPERMS)))); Enumeration en = v.elements(); while (en.hasMoreElements()) { ConditionalPermissionInfo cpi = (ConditionalPermissionInfo) en.nextElement(); ConditionInfo cis[] = cpi.getConditionInfos(); PermissionInfo pis[] = cpi.getPermissionInfos(); for (int i = 0; i < cis.length; i++) { writer.write(cis[i].getEncoded()); writer.newLine(); } for (int i = 0; i < pis.length; i++) { writer.write(pis[i].getEncoded()); writer.newLine(); } writer.newLine(); } } finally { if (writer != null) writer.close(); }
	public void serializeConditionalPermissionInfos(Serializable o) throws IOException {		FileOutputStream fos = new FileOutputStream(new File(permissionDir, CONDPERMS));		ObjectOutputStream oos = new ObjectOutputStream(fos);		oos.writeObject(o);		oos.close();	}