Examples of save()


Examples of com.itstherules.image.IImage.save()

    String directory = (String) parameters.get("directory");
    String imageName = (String) parameters.get("image");
    IImage image = new AWTImage(PathResolver.resolve("photos/"+directory+"/"+imageName, PhotosController.class));
    image.rotate(getIntParameter(parameters.get("rotation")));
    image.scale(getIntParameter(parameters.get("width")), getIntParameter(parameters.get("height")), true, true);
    image.save();
    try {
      IImage thumbnailImage = new AWTImage(PathResolver.resolve("photos/"+directory+"/thumbnails/"+imageName, PhotosController.class));
        thumbnailImage.rotate(getIntParameter(parameters.get("rotation")));
        thumbnailImage.save();
    } catch(FileNotFoundException e){
View Full Code Here

Examples of com.jada.xml.ie.ItemSimple.save()

            String output = formatHtmlMessage(lineNumber, input, messages);
            form.setMessageText(output);
            return actionMapping.findForward("error");
          }
         
          itemSimple.save(getAdminBean(request));
        }
        catch (ItemSaveException e) {
          String output = formatHtmlMessage(lineNumber, StringEscapeUtils.escapeHtml(input), e.getMessage());
          form.setMessageText(output);
          em.getTransaction().rollback();
View Full Code Here

Examples of com.jcloisterzone.game.Snapshot.save()

            Snapshot snapshot = new Snapshot(game);
            if ("plain".equals(debugConfig.getSave_format())) {
                snapshot.setGzipOutput(false);
            }
            try {
                snapshot.save(new FileOutputStream(debugConfig.getAutosave()));
            } catch (TransformerException | IOException e) {
                logger.error("Auto save before ranking failed.", e);
            }
        }
    }
View Full Code Here

Examples of com.jengine.orm.model.Model.save()

        Field middleModelReferenceField = getReverseField().getMiddleField();
        for (Object key : keys) {
            Model middleObj = middleModelClass.newInstance();
            middleObj.setValue(middleModelField, values.get(getKeyFieldName()));
            middleObj.setValue(middleModelReferenceField, key);
            middleObj.save();
        }
    }

    public void remove(Model obj) throws DBException {
        ModelClassBase middleModelClass = getMiddleClass();
View Full Code Here

Examples of com.jme3.export.binary.BinaryExporter.save()

                    Logger.getLogger(SaveGame.class.getName()).log(Level.SEVERE, "Error creating save file!");
                    throw new IllegalStateException("SaveGame dataset cannot be created");
                }
            }
            os = new GZIPOutputStream(new BufferedOutputStream(new FileOutputStream(saveFile)));
            ex.save(data, os);
            Logger.getLogger(SaveGame.class.getName()).log(Level.FINE, "Saving data to: {0}", saveFile.getAbsolutePath());
        } catch (IOException ex1) {
            Logger.getLogger(SaveGame.class.getName()).log(Level.SEVERE, "Error saving data: {0}", ex1);
            ex1.printStackTrace();
            throw new IllegalStateException("SaveGame dataset cannot be saved");
View Full Code Here

Examples of com.jogamp.opencl.util.CLBuildConfiguration.save()

        assertTrue(program.isExecutable());

        // serialization test
        File file = tmpFolder.newFile("foobar.builder");
        ObjectOutputStream oos = new ObjectOutputStream(new FileOutputStream(file));
        builder.save(oos);
        oos.close();

        // build configuration
        ObjectInputStream ois = new ObjectInputStream(new FileInputStream(file));
        CLBuildConfiguration buildConfig = CLProgramBuilder.loadConfiguration(ois);
View Full Code Here

Examples of com.jpetrak.gate.stringannotation.extendedgazetteer2.ExtendedGazetteer2.save()

    System.out.println("Elapsed time for loading from lst: "+((endTime-startTime)/1000.0));
    System.out.println("Memory used up in between: "+(after-before));
    System.out.println("Saving to test-big.gazbin");
    File save = new File("test-big.gazbin");
    startTime = System.currentTimeMillis();
    eg.save(save);
    endTime = System.currentTimeMillis();
    Factory.deleteResource(eg);
    System.out.println("Elapsed time for saving to gazbin: "+((endTime-startTime)/1000.0));
    eg = null;
    System.gc();
View Full Code Here

Examples of com.jpetrak.gate.stringannotation.extendedgazetteer2.trie3.GazStoreTrie3.save()

      Lookup l = lookupIter.next();
      System.out.println("Have a lookup"+l);
    }
    File someFile = new File("tmp.gazbin");
    try {
      gs.save(someFile);
    } catch (FileNotFoundException e) {
      e.printStackTrace();
      assertTrue("could not save trie", false);
      return;
    }
View Full Code Here

Examples of com.jspsmart.upload.SmartUpload.save()

      for (int i = 0; i < mySmartUpload.getFiles().getCount(); i++) {
        com.jspsmart.upload.File myfile = mySmartUpload.getFiles()
            .getFile(i);
        String fileName = myfile.getFileName();
        // 保存
        count = mySmartUpload.save("/upload");
        // count = mySmartUpload.save(null);
      }
      out.println(count + " file uploaded.");
    } catch (Exception e) {
      out.println("Unable to upload the file.<br>");
View Full Code Here

Examples of com.kellerkindt.scs.interfaces.StorageHandler.save()

               
                ShowCaseStandalone.slog(Level.INFO, "Add backuped shops.");
                sh.addAll(shops);

                ShowCaseStandalone.slog(Level.INFO, "Saving all currently loaded shops.");
                storage.save(sh);
               
      } catch (Exception ioe) {
        ShowCaseStandalone.slog(Level.WARNING, "Exception on prune: " + ioe.getLocalizedMessage());
                Messaging.send(cs, Term.ERROR_GENERAL.get("pruning") + ioe.getLocalizedMessage());//msg: generalError %1 (reloading)
      }
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.