public class ObjectEvent extends BufferEvent
BufferEvent extender that propagates an object that implements IPumpableBufferEvent.EventSource| Constructor and Description |
|---|
ObjectEvent()
Create a new instance
|
ObjectEvent(IPumpable item)
Create a new instance
|
| Modifier and Type | Method and Description |
|---|---|
void |
extendDeflate(DataOutput out)
This method is implemented by
BufferEvent extenders to deflate the additional information
they handle |
void |
extendFromXML(Element element) |
void |
extendInflate(DataInput in)
This method is implemented by
BufferEvent extenders to inflate the additional information
they handle |
void |
extendToXML(Document doc,
Element element) |
IPumpable |
getItem()
Retrieves the payload object
|
void |
setItem(IPumpable item)
Sets the payload object
|
public ObjectEvent()
public ObjectEvent(IPumpable item)
item - the payload objectpublic void setItem(IPumpable item)
item - the payload objectpublic IPumpable getItem()
public void extendToXML(Document doc, Element element) throws GRS2RecordSerializationException
extendToXML in class BufferEventGRS2RecordSerializationExceptionpublic void extendFromXML(Element element) throws GRS2RecordSerializationException
extendFromXML in class BufferEventGRS2RecordSerializationExceptionpublic void extendDeflate(DataOutput out) throws GRS2RecordSerializationException
BufferEvent extenders to deflate the additional information
they handleextendDeflate in class BufferEventout - the stream to deflate toGRS2RecordSerializationException - there was a problem deflating the eventBufferEvent.extendDeflate(java.io.DataOutput)public void extendInflate(DataInput in) throws GRS2RecordSerializationException
BufferEvent extenders to inflate the additional information
they handleextendInflate in class BufferEventin - the stream to inflate fromGRS2RecordSerializationException - there was a problem inflating the eventBufferEvent.extendInflate(java.io.DataInput)Copyright © 2014. All Rights Reserved.