Package ca.phon.app.autosave
Class Autosaves
java.lang.Object
ca.phon.app.autosave.Autosaves
Extension for
Project
s which manages auto-save files for
a project. This extension is automatically attacthed to project
files when available in the classpath.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
createAutosave
(Session session) void
createAutosave
(Session session, String corpus, String sessionName) Create an autosave for the givn sesion.getAutosaveDateTime
(Session session) getAutosaveDateTime
(String corpus, String session) Get the creation date of the autosave file for a session.getAutosavePath
(Session session) getAutosavePath
(String corpus, String session) Get the autosave path for the given session.Get the project refernce.boolean
hasAutosave
(Session session) boolean
hasAutosave
(String corpus, String session) Does the project have an autosave for the given session.openAutosave
(Session session) openAutosave
(String corpus, String session) Open session from autosave file.
-
Constructor Details
-
Autosaves
-
-
Method Details
-
getAutosavePath
-
getAutosavePath
Get the autosave path for the given session.- Parameters:
corpus
-session
-- Returns:
- autosave path
-
hasAutosave
-
hasAutosave
Does the project have an autosave for the given session.- Parameters:
corpus
-session
-
-
createAutosave
- Throws:
IOException
-
createAutosave
Create an autosave for the givn sesion.- Parameters:
session
-- Throws:
IOException
-
getAutosaveDateTime
-
getAutosaveDateTime
Get the creation date of the autosave file for a session.- Parameters:
corpus
-session
-- Returns:
- session modification date,
null
if autosave does not exist
-
openAutosave
- Throws:
IOException
-
openAutosave
Open session from autosave file.- Parameters:
corpus
-session
-- Returns:
- session
- Throws:
IOException
-
getProject
Get the project refernce.- Returns:
- project
-