Package net.sf.orexio.lopf.repository

Examples of net.sf.orexio.lopf.repository.TrueZipRepository.open()


      TrueZipRepository     repository;
      String              folder=CannaGrower.getCannaGrowerFolder().getPath();

    if(!folder.endsWith(System.getProperty("file.separator"))){folder+=System.getProperty("file.separator");}
      repository=new TrueZipRepository(new File(folder+CannaGrower.class.getSimpleName()+"."+Resources.class.getSimpleName()+".jar"));
    repository.open();
    repository.read();
    return new Resources(repository);
  }
   
View Full Code Here


      java.util.Date          date=new java.util.Date();
      Plantation             plantation;
      net.sf.cannagrower.data.Event  event;
     
      repository=new TrueZipRepository(new File(Messages.getMessage(Messages.cultureDemoName)+CannaGrower.extension));
      repository.open();
     
      culture=new Culture(repository);

      culture.getHardwares().store(new Room());
      culture.getHardwares().store(new Lamp());
View Full Code Here

      culture.setNew(false);
      break;
    default:
      repository=new TrueZipRepository(new File(Messages.getMessage(Messages.cultureNewName)+CannaGrower.extension));
      repository.setSerializer(XmlSerializer.getSerializer());
      repository.open();
      culture=new Culture(repository);
      culture.repository.read();
      culture.setNew(true);
      culture.setModified(false);
      break;
View Full Code Here

 
  public static Culture read(java.io.File file)throws IOException,ClassNotFoundException{
    TrueZipRepository repository=new TrueZipRepository(new File(file));
    Culture culture;
   
    repository.open();
    repository.read();
   
    culture=new Culture (repository);
   
    culture.setNew(false);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.