|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--net.sourceforge.groboutils.uicapture.v1.DefaultScreenScraper
Writes images to files using the javax.imageio package.
Constructor Summary | |
DefaultScreenScraper()
Find the first writer format name we come across. |
|
DefaultScreenScraper(java.lang.String writerFormatName)
Use the given writerFormatName to write images to disk. |
Method Summary | |
protected void |
assertFormatName()
Discover if the current format name is supported. |
java.lang.String |
getFileExtention()
Discover the file extention for images created by this scraper. |
void |
writeImageToFile(java.awt.image.BufferedImage image,
java.io.File file)
Write the given image to the given file. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DefaultScreenScraper()
java.lang.IllegalArgumentException
- thrown if there are no formats
supported.public DefaultScreenScraper(java.lang.String writerFormatName)
java.lang.IllegalArgumentException
- thrown if the given name is not
supported.Method Detail |
public void writeImageToFile(java.awt.image.BufferedImage image, java.io.File file) throws java.io.IOException
writeImageToFile
in interface IScreenScraper
image
- The screen image to write to disk.file
- The File to save the image as.
java.io.IOException
- thrown if there was a problem saving the image to
the file.
java.lang.IllegalArgumentException
- if any parameter is null.
java.lang.IllegalStateException
- if no appropriate writer could be found.public java.lang.String getFileExtention()
getFileExtention
in interface IScreenScraper
protected void assertFormatName()
java.lang.IllegalArgumentException
- thrown if the current name is not
supported.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |