Advertisement
Guest User

Untitled

a guest
Oct 21st, 2019
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. public void storePolicyToObjectFile(String filename) {
  2. ObjectOutputStream output = null;
  3. try {
  4. output = new ObjectOutputStream(new FileOutputStream(filename));
  5. output.writeObject(policy);
  6. output.close();
  7. } catch (IOException ex) {
  8. Logger.getLogger(PolicyController.class.getName())
  9. .log(Level.SEVERE, null, ex);
  10. } finally {
  11. try {
  12. output.close();
  13. } catch (IOException ex) {
  14. Logger.getLogger(PolicyController.class.getName())
  15. .log(Level.SEVERE, null, ex);
  16. }
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement