Class URLToImage

  • All Implemented Interfaces:
    java.lang.Cloneable, Actor, Executable, FiringsRecordable, Initializable, TypedActor, Changeable, Debuggable, DebugListener, Derivable, Instantiable, ModelErrorHandler, MoMLExportable, Moveable, Nameable

    public class URLToImage
    extends Transformer

    An actor that reads a String input token naming a URL and outputs an Object Token that contains a java.awt.Image

    It is possible to load a file from the local file system by using the prefix "file://" instead of "http://". Relative file paths are allowed. To specify a file relative to the current directory, use "../" or "./". For example, if the current directory contains a file called "test.jpg", then sourceURL should be set to "file:./test.jpg". If the parent directory contains a file called "test.jpg", then sourceURL should be set to "file:../test.jpg". To reference the file test.jpg, located at "/tmp/test.jpg", sourceURL should be set to "file:///tmp/test.jpg" The default value is "file:///tmp/test.jpg".

    Since:
    Ptolemy II 3.0
    Version:
    $Id$
    Author:
    Christopher Hylands
    See Also:
    ImageReader
    Pt.AcceptedRating:
    Red (cxh)
    Pt.ProposedRating:
    Red (cxh)