public class StringFieldDefinition extends FieldDefinition implements Serializable
FieldDefinition implementation for StringField| Modifier and Type | Field and Description |
|---|---|
static String |
DefaultCharset
The default charset used to encode the payload for transport.
|
static IBuffer.TransportDirective |
DefaultDirective
The default transport directive currently set to
IBuffer.TransportDirective.Full |
static String |
DefaultMimeType
The default MIME type currently set to text/plain
|
DefaultChunkSize, DefaultDoCompress| Constructor and Description |
|---|
StringFieldDefinition()
Creates a new instance
|
StringFieldDefinition(String name)
Creates a new instance
|
| Modifier and Type | Method and Description |
|---|---|
void |
extendDeflate(DataOutput out)
Method to be implemented by class extenders to deflate additional information
|
boolean |
extendEquals(Object obj)
Method to be implemented by extenders to check if two instances are equal
|
void |
extendFromXML(Element element) |
void |
extendInflate(DataInput in)
Method to be implemented by the class extenders to inflate additional information previously deflated
|
void |
extendToXML(Document doc,
Element element) |
String |
getCharset()
Retrieves the charset name used to encode the payload
|
IBuffer.TransportDirective |
getTransportDirective()
Retrieves the transport directive to be used during transfer
|
void |
setCharset(String charset)
The charset name to use to encode the payload
|
void |
setTransportDirective(IBuffer.TransportDirective directive)
Sets the transport directive to be used during transfer
|
deflate, equals, fromXML, getChunkSize, getMimeType, getName, inflate, isCompress, setChunkSize, setCompress, setMimeType, setName, toXMLpublic static final String DefaultMimeType
public static final IBuffer.TransportDirective DefaultDirective
IBuffer.TransportDirective.Fullpublic static final String DefaultCharset
public StringFieldDefinition()
public StringFieldDefinition(String name)
name - the field definition namepublic void setCharset(String charset)
charset - the charset namepublic String getCharset()
public void setTransportDirective(IBuffer.TransportDirective directive)
The set IBuffer.TransportDirective is not affected. Only the default IBuffer.TransportDirective.Full is supported
setTransportDirective in class FieldDefinitiondirective - the directive to be usedFieldDefinition.setTransportDirective(gr.uoa.di.madgik.grs.buffer.IBuffer.TransportDirective)public IBuffer.TransportDirective getTransportDirective()
The default IBuffer.TransportDirective.Full is returned
getTransportDirective in class FieldDefinitionFieldDefinition.getTransportDirective()public boolean extendEquals(Object obj)
extendEquals in class FieldDefinitionobj - the instance to check for equalityFieldDefinition.extendEquals(java.lang.Object)public void extendDeflate(DataOutput out) throws GRS2RecordSerializationException
extendDeflate in class FieldDefinitionout - the stream to deflate toGRS2RecordSerializationException - A serialization error occurredFieldDefinition.extendDeflate(java.io.DataOutput)public void extendInflate(DataInput in) throws GRS2RecordSerializationException
extendInflate in class FieldDefinitionin - the stream to inflate fromGRS2RecordSerializationException - A deserialization error occurredFieldDefinition.extendInflate(java.io.DataInput)public void extendToXML(Document doc, Element element) throws GRS2RecordSerializationException
extendToXML in class FieldDefinitionGRS2RecordSerializationExceptionpublic void extendFromXML(Element element) throws GRS2RecordSerializationException
extendFromXML in class FieldDefinitionGRS2RecordSerializationExceptionCopyright © 2014. All Rights Reserved.