gr.uoa.di.madgik.grs.record.field.mediation
Class MediationFactory

java.lang.Object
  extended by gr.uoa.di.madgik.grs.record.field.mediation.MediationFactory

public class MediationFactory
extends java.lang.Object

Utility class constructing a MediatingInputStream that accesses the payload of the provided Field

Author:
gpapanikos

Constructor Summary
MediationFactory()
           
 
Method Summary
static MediatingInputStream getStream(Field field)
          Creates a MediatingInputStream over the payload of the provided Field
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MediationFactory

public MediationFactory()
Method Detail

getStream

public static MediatingInputStream getStream(Field field)
                                      throws java.io.IOException,
                                             GRS2RecordMediationException
Creates a MediatingInputStream over the payload of the provided Field

Parameters:
field - the field whose payload needs to be accessed
Returns:
the constructed stream
Throws:
java.io.IOException - THe payload's input stream could not be created
GRS2RecordMediationException - the mediation over the field's payload could not be initialized