Class Autosaves
java.lang.Object
ca.phon.app.autosave.Autosaves
-
Constructor Summary
Constructors -
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
-
hasAutosave
-
hasAutosave
-
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
-