gr.uoa.di.madgik.grs.record
Interface IPumpable

All Known Implementing Classes:
BufferEvent, Field, FileField, GenericRecord, KeyValueEvent, ObjectEvent, ObjectField, Record, SimplePumpable, StringField, URLField

public interface IPumpable

Implementers of this interface must define a default no arguments constructor

Author:
gpapanikos

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
 void fromXML(org.w3c.dom.Element element)
           
 void inflate(java.io.DataInput in)
          Inflate the state and data of the implementor as was previously deflated using deflate(DataOutput)
 void inflate(java.io.DataInput in, boolean reset)
          Inflate the state and data of the implementor as was previously deflated using deflate(DataOutput)
 org.w3c.dom.Element toXML(org.w3c.dom.Document doc)
           
 

Method Detail

deflate

void deflate(java.io.DataOutput out)
             throws GRS2RecordSerializationException
Deflates the state and data of the implementor in a from capable of reconstructing the exact same instance

Parameters:
out - the stream to write to
Throws:
GRS2RecordSerializationException - the deflate could not be completed

inflate

void inflate(java.io.DataInput in)
             throws GRS2RecordSerializationException
Inflate the state and data of the implementor as was previously deflated using deflate(DataOutput)

Parameters:
in - the stream to inflate from
Throws:
GRS2RecordSerializationException - the inflate could not be completed

inflate

void inflate(java.io.DataInput in,
             boolean reset)
             throws GRS2RecordSerializationException
Inflate the state and data of the implementor as was previously deflated using deflate(DataOutput)

Parameters:
in - the stream to inflate from
reset - 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

org.w3c.dom.Element toXML(org.w3c.dom.Document doc)
                          throws GRS2RecordSerializationException,
                                 GRS2RecordDefinitionException,
                                 org.w3c.dom.DOMException
Throws:
GRS2RecordSerializationException
GRS2RecordDefinitionException
org.w3c.dom.DOMException

fromXML

void fromXML(org.w3c.dom.Element element)
             throws GRS2RecordSerializationException,
                    GRS2RecordDefinitionException,
                    org.w3c.dom.DOMException
Throws:
GRS2RecordSerializationException
GRS2RecordDefinitionException
org.w3c.dom.DOMException