ca.sqlpower.wabit.dao
Class PersisterUtils

java.lang.Object
  extended by ca.sqlpower.wabit.dao.PersisterUtils

public class PersisterUtils
extends java.lang.Object


Method Summary
static java.io.ByteArrayOutputStream convertImageToStreamAsPNG(java.awt.Image img)
          Converts an image to an output stream to be persisted in some way.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

convertImageToStreamAsPNG

public static java.io.ByteArrayOutputStream convertImageToStreamAsPNG(java.awt.Image img)
Converts an image to an output stream to be persisted in some way.

Parameters:
img - The image to convert to an output stream for persisting.
Returns:
An output stream containing an encoding of the image as PNG.


Copyright © 2009. All Rights Reserved.