{
throw new IOException(e.toString());
}
InputStream in2 = new CipherInputStream(in, cipher);
JreepadTreeModel document;
try
{
document = reader.read(in2);
}
catch (IOException e)
{
throw new IOException("Password incorrect or read problem occurred");
}
document.setFileType(JreepadPrefs.FILETYPE_XML_ENCRYPTED);
document.setPassword(password);
return document;
}