net.sf.magicproject.event
Class EventFactory

java.lang.Object
  extended by net.sf.magicproject.event.EventFactory

public final class EventFactory
extends java.lang.Object

The event factory.

Since:
0.90
Author:
Fabrice Daugan

Method Summary
static MEventListener readNextEvent(java.io.InputStream inputFile, MCard card)
          return the next EventListener read from the current offset
Structure of InputStream : Data[size] idEvent [1] idZone [1] test [...]
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

readNextEvent

public static MEventListener readNextEvent(java.io.InputStream inputFile,
                                           MCard card)
                                    throws java.io.IOException
return the next EventListener read from the current offset

Parameters:
inputFile - is the file containing this event
card - is the card owning this event
Returns:
the next EventListener read from the current offset
Throws:
java.io.IOException - if error occurred during the reading process from the specified input stream


Copyright © 2003-2007 Magic-Project. All Rights Reserved.