|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.fest.swing.junit.ant.ImageHandler
public final class ImageHandler
Understands base64 encoding and decoding of an image.
Method Summary | |
---|---|
static BufferedImage |
decodeBase64(String encoded)
Decodes the given base64 characters into an image. |
static String |
decodeBase64AndSaveAsPng(String encoded,
String path)
Decodes the given base64 characters into an image, and saves the decoded image as a file using the given path. |
static String |
encodeBase64(BufferedImage image)
Encodes the given image using the base64 algorithm. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static String encodeBase64(BufferedImage image)
image
- the image to encode.
public static BufferedImage decodeBase64(String encoded)
encoded
- the given base64 characters.
public static String decodeBase64AndSaveAsPng(String encoded, String path)
encoded
- the given base64 characters.path
- the path where to save the image file.
String
. This method is used by this extensions XSL stylesheets to decode the image in
the XML report.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |