public abstract class BufferEvent extends Object implements IPumpable, Serializable
IBuffer
must extend. All extenders of it must declare a default no arguments constructor| Modifier and Type | Class and Description |
|---|---|
static class |
BufferEvent.EventSource
The source of the event
|
| Constructor and Description |
|---|
BufferEvent() |
| Modifier and Type | Method and Description |
|---|---|
void |
deflate(DataOutput out)
Deflates the state and data of the implementor in a from capable of reconstructing the exact same instance
|
abstract void |
extendDeflate(DataOutput out)
This method is implemented by
BufferEvent extenders to deflate the additional information
they handle |
abstract void |
extendFromXML(Element element) |
abstract void |
extendInflate(DataInput in)
This method is implemented by
BufferEvent extenders to inflate the additional information
they handle |
abstract void |
extendToXML(Document doc,
Element element) |
void |
fromXML(Element element) |
BufferEvent.EventSource |
getSource()
Retrieves the source of the event
|
void |
inflate(DataInput in)
Inflate the state and data of the implementor as was previously deflated using
IPumpable.deflate(DataOutput) |
void |
inflate(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
|
Element |
toXML(Document doc) |
public BufferEvent.EventSource getSource()
public void setSource(BufferEvent.EventSource source)
source - the event sourcepublic void deflate(DataOutput out) throws GRS2RecordSerializationException
deflate in interface IPumpableout - the stream to write toGRS2RecordSerializationException - the deflate could not be completedIPumpable.deflate(java.io.DataOutput)public abstract void extendDeflate(DataOutput out) throws GRS2RecordSerializationException
BufferEvent extenders to deflate the additional information
they handleout - the stream to deflate toGRS2RecordSerializationException - there was a problem deflating the eventpublic void inflate(DataInput in) throws GRS2RecordSerializationException
IPumpable.deflate(DataOutput)inflate in interface IPumpablein - the stream to inflate fromGRS2RecordSerializationException - the inflate could not be completedIPumpable.inflate(java.io.DataInput)public void inflate(DataInput in, boolean reset) throws GRS2RecordSerializationException
IPumpable.deflate(DataOutput)inflate in interface IPumpablein - the stream to inflate fromreset - if the implementor keeps some state over actions previously taken and this is true, this state must be resetGRS2RecordSerializationException - the inflate could not be completedIPumpable.inflate(java.io.DataInput, boolean)public abstract void extendInflate(DataInput in) throws GRS2RecordSerializationException
BufferEvent extenders to inflate the additional information
they handlein - the stream to inflate fromGRS2RecordSerializationException - there was a problem inflating the eventpublic Element toXML(Document doc) throws GRS2RecordSerializationException, GRS2RecordDefinitionException, DOMException
toXML in interface IPumpableGRS2RecordSerializationExceptionGRS2RecordDefinitionExceptionDOMExceptionpublic void fromXML(Element element) throws GRS2RecordSerializationException, GRS2RecordDefinitionException, DOMException
fromXML in interface IPumpableGRS2RecordSerializationExceptionGRS2RecordDefinitionExceptionDOMExceptionpublic abstract void extendToXML(Document doc, Element element) throws GRS2RecordSerializationException
GRS2RecordSerializationExceptionpublic abstract void extendFromXML(Element element) throws GRS2RecordSerializationException
GRS2RecordSerializationExceptionCopyright © 2014. All Rights Reserved.