Package com.github.mike10004.xvfbmanager
Class XwdScreenshooter
- java.lang.Object
-
- com.github.mike10004.xvfbmanager.XwdScreenshooter
-
- All Implemented Interfaces:
Screenshooter<XwdFileScreenshot>
public class XwdScreenshooter extends Object implements Screenshooter<XwdFileScreenshot>
Implementation of a screenshooter that executes an X utility. Usesxwdto capture a screenshot of the framebuffer. The raw output file (as returned byScreenshot.asByteSource()is inxwdformat. Use thexwdtopnmprogram to export it to a PNM file.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.github.mike10004.xvfbmanager.Screenshooter
Screenshooter.ScreenshooterException
-
-
Constructor Summary
Constructors Constructor Description XwdScreenshooter(io.github.mike10004.subprocess.ProcessTracker processTracker, String display, File outputDir)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description XwdFileScreenshotcapture()Captures a screenshot.static Iterable<String>getRequiredPrograms()
-
-
-
Method Detail
-
capture
public XwdFileScreenshot capture() throws IOException, XvfbException
Description copied from interface:ScreenshooterCaptures a screenshot.- Specified by:
capturein interfaceScreenshooter<XwdFileScreenshot>- Returns:
- the screenshot
- Throws:
IOException- if capture encounters an I/O errorXvfbException- if a virtual framebuffer error occurs
-
-