Examples of save()


Examples of mediautil.image.jpeg.LLJTran.save()

    llj.transform(op, options);

    // 3. Save the Image which is already transformed as specified by the
    //    input transformation in Step 2, along with the Exif header.
    try (OutputStream out = new BufferedOutputStream(output)) {
      llj.save(out, LLJTran.OPT_WRITE_ALL);
    }

    // Cleanup
    input.close();
    llj.freeMemory();
View Full Code Here

Examples of megamek.common.Board.save()

                    /*
                     * * Save the board here.
                     */
                    Board recvBoard = (Board) packet.getObject(0);
                    try {
                        recvBoard.save(new FileOutputStream("xmit.board"));
                    } catch (IOException ioErr) {
                        ioErr.printStackTrace();
                    }
                    break;
                case Packet.COMMAND_SENDING_ENTITIES:
View Full Code Here

Examples of memory.IEnvironment.save()

                }
                if (s == Sort.detect) {
                    IEnvironment environment = solver.getEnvironment();
                    if (isDsc) {
                        s = Sort.desc;
                        environment.save(new Operation() {
                            @Override
                            public void undo() {
                                s = Sort.detect;
                            }
                        });
View Full Code Here

Examples of modbuspal.automation.Automation.save()

    throws IOException
    {
        for(int i=0; i<automations.size(); i++)
        {
            Automation automation = automations.get(i);
            automation.save(out);
        }
    }

    private void saveSlaves(OutputStream out)
    throws IOException
View Full Code Here

Examples of modbuspal.binding.Binding.save()

            }
            else
            {
                tag.append(">\r\n");
                out.write( tag.toString().getBytes() );
                binding.save(out);
                String closeTag = "</"+TXT_REGISTER+">\r\n";
                out.write( closeTag.getBytes() );
            }
        }
    }
View Full Code Here

Examples of modbuspal.slave.ModbusSlave.save()

            {
                Automation automation = getAutomation( names[i] );
                automation.save(out);
            }
        }
        exportedSlave.save(out,withBindings);

        String closeTag = "</modbuspal_slave>\r\n";
        out.write( closeTag.getBytes() );
        out.close();
    }
View Full Code Here

Examples of model.Server.save()

    @Test
    public void testSave() {
        System.out.println("save");
        Server instance = new Server();
        boolean expResult = false;
        boolean result = instance.save();
        assertEquals(expResult, result);
    }

    /**
     * Test of remove method, of class Server.
View Full Code Here

Examples of modelet.model.DefaultModel.save()

    book.setBookName("賈'伯'斯'傳");
    book.setCreateDate(new Date());
    book.setPrice(new BigDecimal("100"));
   
    DefaultModel model = ApplicationContextHelper.getBean("defaultModel");
    model.save(book);
  }
}
View Full Code Here

Examples of models.Account.save()

    }

    @Test
    public void testDeleteAll() {
        Account before = new Account("loginxyz", "a@a.a");
        before.save();
        Account.deleteAll();
        Assert.assertEquals(0, Account.count());
    }

    @Test
View Full Code Here

Examples of models.Agenda.save()

        }

        Agenda formAgenda = agendaForm.get();

        if (getEvent().getAgenda() == null) {
            formAgenda.save();
            getEvent().setAgenda(formAgenda);
            getEvent().update();
        } else {
            // Mise à jour d'un agenda
            Agenda dbAgenda = Agenda.find.byId(getEvent().getAgenda().getId());
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.