Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void storePolicyToObjectFile(String filename) {
- ObjectOutputStream output = null;
- try {
- output = new ObjectOutputStream(new FileOutputStream(filename));
- output.writeObject(policy);
- output.close();
- } catch (IOException ex) {
- Logger.getLogger(PolicyController.class.getName())
- .log(Level.SEVERE, null, ex);
- } finally {
- try {
- output.close();
- } catch (IOException ex) {
- Logger.getLogger(PolicyController.class.getName())
- .log(Level.SEVERE, null, ex);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement