Package ru.curs.celesta.score
Class GrainSaver
- java.lang.Object
-
- ru.curs.celesta.score.GrainSaver
-
public final class GrainSaver extends Object
Persists grain to a writable resource.- Since:
- 2019-03-10
- Author:
- Pavel Perminov (packpaul@mail.ru)
-
-
Constructor Summary
Constructors Constructor Description GrainSaver()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
save(AbstractScore score, Resource scorePath)
Saves metadata content of score back to SQL-files rewriting their content.void
save(Grain grain, Resource scorePath)
Saves grain to file(s).
-
-
-
Method Detail
-
save
public void save(AbstractScore score, Resource scorePath) throws IOException
Saves metadata content of score back to SQL-files rewriting their content.- Parameters:
score
- Score to savescorePath
- path to save the score to- Throws:
IOException
-
save
public void save(Grain grain, Resource scorePath) throws IOException
Saves grain to file(s).- Parameters:
grain
- grain to savescorePath
- path to save the grain to- Throws:
IOException
-
-