gr.uoa.di.madgik.grs.test
Class SimplePumpable
java.lang.Object
gr.uoa.di.madgik.grs.test.SimplePumpable
- All Implemented Interfaces:
- IPumpable, Serializable
public class SimplePumpable
- extends Object
- implements IPumpable
- See Also:
- Serialized Form
payload
public String payload
counter
public int counter
SimplePumpable
public SimplePumpable()
populate
public void populate()
toString
public String toString()
- Overrides:
toString in class Object
deflate
public void deflate(DataOutput out)
throws GRS2RecordSerializationException
- Description copied from interface:
IPumpable
- Deflates the state and data of the implementor in a from capable of reconstructing the exact same instance
- Specified by:
deflate in interface IPumpable
- Parameters:
out - the stream to write to
- Throws:
GRS2RecordSerializationException - the deflate could not be completed
inflate
public void inflate(DataInput in)
throws GRS2RecordSerializationException
- Description copied from interface:
IPumpable
- Inflate the state and data of the implementor as was previously deflated using
IPumpable.deflate(DataOutput)
- Specified by:
inflate in interface IPumpable
- Parameters:
in - the stream to inflate from
- Throws:
GRS2RecordSerializationException - the inflate could not be completed
inflate
public void inflate(DataInput in,
boolean reset)
throws GRS2RecordSerializationException
- Description copied from interface:
IPumpable
- Inflate the state and data of the implementor as was previously deflated using
IPumpable.deflate(DataOutput)
- Specified by:
inflate in interface IPumpable
- Parameters:
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
- Throws:
GRS2RecordSerializationException - the inflate could not be completed
toXML
public Element toXML(Document doc)
throws GRS2RecordSerializationException,
GRS2RecordDefinitionException,
DOMException
- Specified by:
toXML in interface IPumpable
- Throws:
GRS2RecordSerializationException
GRS2RecordDefinitionException
DOMException
fromXML
public void fromXML(Element element)
throws GRS2RecordSerializationException,
GRS2RecordDefinitionException,
DOMException
- Specified by:
fromXML in interface IPumpable
- Throws:
GRS2RecordSerializationException
GRS2RecordDefinitionException
DOMException
Copyright © 2012. All Rights Reserved.