Class GrainSaver


  • public final class GrainSaver
    extends Object
    Persists grain to a writable resource.
    Since:
    2019-03-10
    Author:
    Pavel Perminov (packpaul@mail.ru)
    • Constructor Detail

      • GrainSaver

        public GrainSaver()
    • 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 save
        scorePath - 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 save
        scorePath - path to save the grain to
        Throws:
        IOException