com.darwinsys.graphics
Class JigglyTextImageWriter

java.lang.Object
  extended by com.darwinsys.graphics.JigglyTextImageWriter
All Implemented Interfaces:
java.io.Serializable

public class JigglyTextImageWriter
extends java.lang.Object
implements java.io.Serializable

Write a ransom-note-style string to an OutputStream as an Image file (jpeg for now). Designed for use in e.g., a servlet for verifying that a user is a person and not a spambot. But, deliberately, does not know about the Servlet API.

See Also:
Serialized Form

Constructor Summary
JigglyTextImageWriter(java.awt.Font font, int width, int height)
           
 
Method Summary
 void write(java.lang.String msg, java.io.OutputStream os)
          generate the image and output it.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JigglyTextImageWriter

public JigglyTextImageWriter(java.awt.Font font,
                             int width,
                             int height)
Method Detail

write

public void write(java.lang.String msg,
                  java.io.OutputStream os)
           throws java.io.IOException
generate the image and output it.

Throws:
java.io.IOException


Copyright © 1996-2004 Ian F. Darwin. See license.html for usage license.