Examples of toFile()


Examples of code.satyagraha.gfm.viewer.bots.ProjectBot.ProjectFileBot.toFile()

        String textMd = "sample text, timestamp: " + System.currentTimeMillis() + ".";
        editorBot.typeText(textMd + "\r");
        editorBot.save();
        editorBot.close();

        File fileMd = fileBot.toFile();
        File fileHt = new File(fileMd.getParentFile(), ".file1.md.html");
        assertThat(fileHt.exists(), is(false));

        fileBot.generateMarkdownPreview();
        SWTUtils.sleep(2000);
View Full Code Here

Examples of com.atlassian.plugin.PluginArtifact.toFile()

        FileUtils.moveFile(jar, zip);

        final JarPluginArtifact jarArtifact = new JarPluginArtifact(zip);
        JsonManifest jsonMf = new JsonManifestHandler().read(jarArtifact);
        PluginArtifact artifact = zipTransformer.convertConventionZipToPluginJar(jsonMf, jarArtifact);
        JarFile jarFile = new JarFile(artifact.toFile());
        Manifest mf = jarFile.getManifest();
        for (Map.Entry<String,String> entry : expectedHeaders.entrySet())
        {
            assertEquals(entry.getValue(), mf.getMainAttributes().getValue(entry.getKey()));
        }
View Full Code Here

Examples of java.nio.file.Path.toFile()

      System.out.println("Temp file : " + tempFile.getAbsolutePath());
      // nio style
      final Path path = Files.createTempFile("nio-temp", ".tmp");
      System.out.println("Temp file : " + path);
      //call the same delete on exit
      path.toFile().deleteOnExit();

      Runtime.getRuntime().addShutdownHook(new Thread() {
        public void run() {
          try {
            Files.delete(path);
View Full Code Here

Examples of jjil.debug.Debug.toFile()

    {
      {
        Gray8Rgb g2r = new Gray8Rgb();
        g2r.push(image);
        Debug debug = new Debug();
        debug.toFile((RgbImage) g2r.getFront(), "barcode.png"); //$NON-NLS-1$
      }
        this.chLeft = new CodeHash();
        this.chRight = new CodeHash();
        int cPixelsPerBar = image.getWidth() / TotalWidth;
        int wSumLeftEdge = 0;
View Full Code Here

Examples of jjil.debug.Debug.toFile()

    {
      {
        Gray8Rgb g2r = new Gray8Rgb();
        g2r.push(image);
        Debug debug = new Debug();
        debug.toFile((RgbImage) g2r.getFront(), "barcode.png"); //$NON-NLS-1$
      }
        this.chLeft = new CodeHash();
        this.chRight = new CodeHash();
        this.chBarCodes = new CodeHash();
        int wSumLeftEdge = 0;
View Full Code Here

Examples of jjil.debug.Debug.toFile()

    Image imThresh = seq.getFront();
    Gray8Rgb g2r = new Gray8Rgb();
    g2r.push(imThresh);
    if (DetectBarcode.bDebug) {
      Debug debug = new Debug();
      debug.toFile((RgbImage)g2r.getFront(), "test.jpg");
    }
    gcc.push(imThresh);
    if (gcc.getComponentCount() == 0) {
      return false;
    }
View Full Code Here

Examples of jjil.debug.Debug.toFile()

        this.imageCropped = (Gray8Image) imageResult;
        {   Debug debug = new Debug();
          Gray8Rgb g2r = new Gray8Rgb();
          g2r.push(this.imageCropped);
          RgbImage rgb = (RgbImage) g2r.getFront();
          debug.toFile(rgb, "cropped.png"); //$NON-NLS-1$
        }
        /* Then do edge detection. The cWidth of the Canny operator is set
         * based on the cropped cWidth, which is supposed to be the
         * barcode cWidth.
         */
 
View Full Code Here

Examples of jjil.debug.Debug.toFile()

        {  
          Debug debug = new Debug();
        Gray8Rgb g2r = new Gray8Rgb();
        g2r.push(this.imageEdge);
        RgbImage rgb = (RgbImage) g2r.getFront();
        debug.toFile(rgb, "edges.png"); //$NON-NLS-1$
      }
    }
   
    private static Image cropAndStretchImage(
            Image imageInput,
View Full Code Here

Examples of jjil.debug.Debug.toFile()

        this.wSlopeRight = fit.getSlope();
        {
          Debug debug = new Debug();
          Gray8Rgb g2r = new Gray8Rgb();
          g2r.push(this.imageEdge);
          debug.toFile((RgbImage) g2r.getFront(), "edges.png"); //$NON-NLS-1$
        }
        return true;
     }
   
    private void findPreciseBarcodeLimits()
View Full Code Here

Examples of jjil.debug.Debug.toFile()

        }
        {
          Debug debug = new Debug();
          Gray8Rgb g2r = new Gray8Rgb();
          g2r.push(imageResult);
          debug.toFile((RgbImage) g2r.getFront(), "rectified.png"); //$NON-NLS-1$
        }
        this.imageRectified = (Gray8Image) imageResult;
    }
   
    /**
 
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.