Class FramebufferDirScreenshooter

    • Constructor Detail

      • FramebufferDirScreenshooter

        public FramebufferDirScreenshooter​(File framebufferDir,
                                           int screen,
                                           File outputDir)
        Constructs a new instance of the class.
        Parameters:
        framebufferDir - the directory containing the framebuffer file
        screen - the screen; see -screen option in the Xvfb manual
        outputDir - directory to which the output file will be written
    • Method Detail

      • constructFramebufferFilename

        protected String constructFramebufferFilename()
      • constructOutputPathname

        protected File constructOutputPathname​(File outputDir)
                                        throws IOException
        Constructs the output file pathname. This implementation creates a temporary file with unique name.
        Parameters:
        outputDir - directory in which file will be a child
        Returns:
        the pathname
        Throws:
        IOException - if something goes awry