diva.util.jester
Class EventWriter

java.lang.Object
  extended by diva.util.jester.EventWriter
All Implemented Interfaces:
ModelWriter

public class EventWriter
extends Object
implements ModelWriter

EventParser parses an XML file representing a stream of AWT input events into an array of InputEvent objects.

Version:
$Revision: 1.3 $
Author:
Michael Shilman (michaels@eecs.berkeley.edu)
See Also:
EventParser

Constructor Summary
EventWriter()
           
 
Method Summary
static void main(String[] args)
          Simple test of this class.
 void writeEvents(InputEvent[] events, Writer writer)
          Write the given stream of input events out to the given writer.
 void writeModel(Object model, Writer writer)
          Write the given stream of input events out to the given writer.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EventWriter

public EventWriter()
Method Detail

writeModel

public void writeModel(Object model,
                       Writer writer)
                throws IOException
Write the given stream of input events out to the given writer. Throw a ClasCastException if the parameter is not of type InputEvent[].

Specified by:
writeModel in interface ModelWriter
Throws:
IOException

writeEvents

public void writeEvents(InputEvent[] events,
                        Writer writer)
                 throws IOException
Write the given stream of input events out to the given writer.

Throws:
IOException

main

public static void main(String[] args)
                 throws Exception
Simple test of this class.

Throws:
Exception


Copyright © 2015 Central Laboratory of the Research Councils. All Rights Reserved.