com.representqueens.spark
Class Encoder

java.lang.Object
  extended by com.representqueens.spark.Encoder

public class Encoder
extends java.lang.Object

Encodes Image data as Strings, using code from David Flanagan's website (http://www.davidflanagan.com/).


Nested Class Summary
static class Encoder.Format
           
 
Constructor Summary
Encoder()
           
 
Method Summary
static java.lang.String encode(java.awt.image.BufferedImage bi, Encoder.Format format)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Encoder

public Encoder()
Method Detail

encode

public static java.lang.String encode(java.awt.image.BufferedImage bi,
                                      Encoder.Format format)
                               throws java.io.IOException
Throws:
java.io.IOException