|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgr.uoa.di.madgik.grs.events.BufferEvent
public abstract class BufferEvent
This is the base class that all events that can be emitted and received through the IBuffer
must extend. All extenders of it must declare a default no arguments constructor
Nested Class Summary | |
---|---|
static class |
BufferEvent.EventSource
The source of the event |
Constructor Summary | |
---|---|
BufferEvent()
|
Method Summary | |
---|---|
void |
deflate(java.io.DataOutput out)
Deflates the state and data of the implementor in a from capable of reconstructing the exact same instance |
abstract void |
extendDeflate(java.io.DataOutput out)
This method is implemented by BufferEvent extenders to deflate the additional information
they handle |
abstract void |
extendInflate(java.io.DataInput in)
This method is implemented by BufferEvent extenders to inflate the additional information
they handle |
BufferEvent.EventSource |
getSource()
Retrieves the source of the event |
void |
inflate(java.io.DataInput in)
Inflate the state and data of the implementor as was previously deflated using IPumpable.deflate(DataOutput) |
void |
inflate(java.io.DataInput in,
boolean reset)
Inflate the state and data of the implementor as was previously deflated using IPumpable.deflate(DataOutput) |
void |
setSource(BufferEvent.EventSource source)
Sets the event source |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BufferEvent()
Method Detail |
---|
public BufferEvent.EventSource getSource()
public void setSource(BufferEvent.EventSource source)
source
- the event sourcepublic void deflate(java.io.DataOutput out) throws GRS2RecordSerializationException
deflate
in interface IPumpable
out
- the stream to write to
GRS2RecordSerializationException
- the deflate could not be completedIPumpable.deflate(java.io.DataOutput)
public abstract void extendDeflate(java.io.DataOutput out) throws GRS2RecordSerializationException
BufferEvent
extenders to deflate the additional information
they handle
out
- the stream to deflate to
GRS2RecordSerializationException
- there was a problem deflating the eventpublic void inflate(java.io.DataInput in) throws GRS2RecordSerializationException
IPumpable.deflate(DataOutput)
inflate
in interface IPumpable
in
- the stream to inflate from
GRS2RecordSerializationException
- the inflate could not be completedIPumpable.inflate(java.io.DataInput)
public void inflate(java.io.DataInput in, boolean reset) throws GRS2RecordSerializationException
IPumpable.deflate(DataOutput)
inflate
in interface IPumpable
in
- the stream to inflate fromreset
- if the implementor keeps some state over actions previously taken and this is true, this state must be reset
GRS2RecordSerializationException
- the inflate could not be completedIPumpable.inflate(java.io.DataInput, boolean)
public abstract void extendInflate(java.io.DataInput in) throws GRS2RecordSerializationException
BufferEvent
extenders to inflate the additional information
they handle
in
- the stream to inflate from
GRS2RecordSerializationException
- there was a problem inflating the event
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |