/**
 * @license
 * Copyright 2018 The FOAM Authors. All Rights Reserved.
 * http://www.apache.org/licenses/LICENSE-2.0
 */

package foam.dao;

import foam.core.ClassInfo;
import foam.lib.json.Outputter;
import foam.lib.json.OutputterMode;
import java.io.IOException;

public class JDAO
  extends AbstractJDAO
{
  protected Outputter outputter_ = new Outputter(OutputterMode.STORAGE);

  public JDAO(foam.core.X x, ClassInfo classInfo, String filename) {
    this(x, new MapDAO(classInfo), filename);
  }

  public JDAO(foam.core.X x, DAO delegate, String filename) {
    super(x, delegate, filename);
    try {
      loadJournal(getX().get(foam.nanos.fs.Storage.class).get(filename));
    } catch ( IOException e ) {
      logger_.error(e);
      throw new RuntimeException(e);
    }
  }

  @Override
  protected Outputter getOutputter() {
    return outputter_;
  }
}

@@ -235,36 +235,8 @@
 ode;
-%0Aimport java.io.IOException;
 %0A%0Apu
@@ -570,191 +570,8 @@
 e);%0A
-    try %7B%0A      loadJournal(getX().get(foam.nanos.fs.Storage.class).get(filename));%0A    %7D catch ( IOException e ) %7B%0A      logger_.error(e);%0A      throw new RuntimeException(e);%0A    %7D%0A
   %7D%0A

revert work on the JDAO.java