net.refractions.udig.issues
Class IssuesListPersister

java.lang.Object
  extended by net.refractions.udig.issues.IssuesListPersister

public class IssuesListPersister
extends java.lang.Object

Persists an issues list to a file

Author:
Jesse

Constructor Summary
IssuesListPersister(IIssuesList list, java.lang.String fileName)
           
 
Method Summary
 void load()
          Reads the local issues from disk
 void save()
          Saves the issues list to the workspace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IssuesListPersister

public IssuesListPersister(IIssuesList list,
                           java.lang.String fileName)
Method Detail

save

public void save()
          throws java.io.IOException
Saves the issues list to the workspace

Throws:
java.io.IOException - Thrown if there is a failure writing the output file.

load

public void load()
          throws java.io.IOException,
                 WorkbenchException
Reads the local issues from disk

Throws:
java.io.IOException - thrown if there was a problem reading the issues file
WorkbenchException - thrown if the xml in the file is bad or doesn't conform to what the XMLMemento expects