Examples of ExifToolWriter


Examples of geodress.model.writer.ExifToolWriter

        + "sky.jpg");
    testFileSky = File.createTempFile("geodress.tests.ExifWriterTest_"
        + System.currentTimeMillis(), ".jpg");
    FileOperations.copy(testPictureWithExifSky, testFileSky);

    writer = new ExifToolWriter();
    reader = new SanselanReader();
  }
View Full Code Here

Examples of geodress.model.writer.ExifToolWriter

  @Test
  public void makeWritingTestDescription() throws Exception {
    /* use program */
    PictureBox testBox = new PictureBox(dir);
    testBox.catchAddresses(new GoogleMapsReader(), new EmptyProgress());
    testBox.writeAddresses(new ExifToolWriter(), InfoConstants.IMAGE_DESCRIPTION,
        new EmptyProgress());

    /* test beach.jpg */
    reader.setFile(testFileBeach);
    String testedAddress = reader.getData(InfoConstants.IMAGE_DESCRIPTION);
View Full Code Here

Examples of geodress.model.writer.ExifToolWriter

   *             may cause an exception
   */
  @Test
  public void makeWritingTestComment() throws Exception {
    /* use program */
    ExifToolWriter writer = new ExifToolWriter();
    writer.setExifToolPath("exiftool");
    PictureBox testBox = new PictureBox(dir);
    testBox.catchAddresses(new GoogleMapsReader(), new EmptyProgress());
    testBox.writeAddresses(writer, InfoConstants.USER_COMMENT,
        new EmptyProgress());

View Full Code Here

Examples of geodress.model.writer.ExifToolWriter

          if (line.hasOption("w")) {
            logger.log(Level.FINE,
                "write caught addresses (field '"
                    + line.getOptionValue("w") + "')");

            ExifToolWriter writer = new ExifToolWriter();

            if (line.hasOption("b")) {
              writer.setBackupMode(false);
            }

            if (line.hasOption("p")) {
              System.out.println("Setting "
                  + line.getOptionValue("p")
                  + " as path to ExifTool...");
              try {
                writer
                    .setExifToolPath(line
                        .getOptionValue("p"));
              } catch (IOException ioe) {
                System.out
                    .println("An error occured while setting the ExifToolPath: "
View Full Code Here

Examples of geodress.model.writer.ExifToolWriter

    this.parentWindow = parent;
    logger = Logging.getLogger(this.getClass().getName());

    /* create readers and writers */
    googleMapsReader = new GoogleMapsReader();
    writer = new ExifToolWriter();

    /* ========== File ========== */
    JMenu menu = new JMenu("File");
    menu.setMnemonic(KeyEvent.VK_F);
    add(menu);
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.