E - the type of the serialised valuespublic class RsStringRecordFactory<E> extends Object implements RecordFactory<E>
RecordFactory for STRING_RECORDs with serialisations of Stream elements.
An untyped record is a record with a string-valued payload field.
| Modifier and Type | Field and Description |
|---|---|
static gr.uoa.di.madgik.grs.record.RecordDefinition |
STRING_RECORD
The type definition of a record with a string-valued
payload field. |
iteration| Constructor and Description |
|---|
RsStringRecordFactory(Generator<E,String> serialiser)
|
| Modifier and Type | Method and Description |
|---|---|
gr.uoa.di.madgik.grs.record.RecordDefinition[] |
definitions()
Returns the definitions of the records.
|
gr.uoa.di.madgik.grs.record.GenericRecord |
newRecord(E element)
Generates a
Record from a Stream element. |
public static final gr.uoa.di.madgik.grs.record.RecordDefinition STRING_RECORD
payload field.public gr.uoa.di.madgik.grs.record.GenericRecord newRecord(E element)
RecordFactoryRecord from a Stream element.newRecord in interface RecordFactory<E>element - the elementpublic gr.uoa.di.madgik.grs.record.RecordDefinition[] definitions()
RecordFactorydefinitions in interface RecordFactory<E>Copyright © 2014. All Rights Reserved.