|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectgr.uoa.di.madgik.grs.record.field.FieldDefinition
gr.uoa.di.madgik.grs.record.field.FileFieldDefinition
public class FileFieldDefinition
The FieldDefinition implementation for FileField
| Field Summary | |
|---|---|
static java.lang.String |
DefaultCharset
The default charset used to encode the original payload path name for transport. |
static boolean |
DefaultDeleteOnDispose
The default producer side cleanup behavior |
static IBuffer.TransportDirective |
DefaultDirective
The default transport directive currently set to IBuffer.TransportDirective.Inherit |
static int |
DefaultLocalBuffer
The default size of the local buffer used to read the local file and send over the stream |
static java.lang.String |
DefaultMimeType
The default MIME type currently set to application/octet-stream |
| Fields inherited from class gr.uoa.di.madgik.grs.record.field.FieldDefinition |
|---|
DefaultChunkSize, DefaultDoCompress |
| Constructor Summary | |
|---|---|
FileFieldDefinition()
Creates a new instance |
|
FileFieldDefinition(java.lang.String name)
Creates a new instance |
|
| Method Summary | |
|---|---|
void |
extendDeflate(java.io.DataOutput out)
Method to be implemented by class extenders to deflate additional information |
boolean |
extendEquals(java.lang.Object obj)
Method to be implemented by extenders to check if two instances are equal |
void |
extendFromXML(org.w3c.dom.Element element)
|
void |
extendInflate(java.io.DataInput in)
Method to be implemented by the class extenders to inflate additional information previously deflated |
void |
extendToXML(org.w3c.dom.Document doc,
org.w3c.dom.Element element)
|
java.lang.String |
getCharset()
Retrieves the charset name used to encode the payload path |
boolean |
getDeleteOnDispose()
Retrieves the local file cleanup behavior |
int |
getLocalBuffer()
Retrieves the local buffer size used when accessing the local file |
void |
setCharset(java.lang.String charset)
The charset name to use to encode the payload path |
void |
setDeleteOnDispose(boolean deleteOnDispose)
Sets the local file cleanup behavior |
void |
setLocalBuffer(int localBuffer)
Sets the local buffer size used when accessing the local file |
| Methods inherited from class gr.uoa.di.madgik.grs.record.field.FieldDefinition |
|---|
deflate, equals, fromXML, getChunkSize, getMimeType, getName, getTransportDirective, inflate, isCompress, setChunkSize, setCompress, setMimeType, setName, setTransportDirective, toXML |
| Methods inherited from class java.lang.Object |
|---|
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String DefaultMimeType
public static final IBuffer.TransportDirective DefaultDirective
IBuffer.TransportDirective.Inherit
public static final java.lang.String DefaultCharset
public static final int DefaultLocalBuffer
public static final boolean DefaultDeleteOnDispose
| Constructor Detail |
|---|
public FileFieldDefinition()
public FileFieldDefinition(java.lang.String name)
name - the field definition name| Method Detail |
|---|
public void setCharset(java.lang.String charset)
charset - the charset namepublic java.lang.String getCharset()
public void setLocalBuffer(int localBuffer)
localBuffer - the local buffer sizepublic int getLocalBuffer()
public void setDeleteOnDispose(boolean deleteOnDispose)
deleteOnDispose - true if the local file should be deleted when this FileField is disposed, false otherwisepublic boolean getDeleteOnDispose()
FileField is disposed, false otherwisepublic boolean extendEquals(java.lang.Object obj)
extendEquals in class FieldDefinitionobj - the instance to check for equality
FieldDefinition.extendEquals(java.lang.Object)
public void extendDeflate(java.io.DataOutput out)
throws GRS2RecordSerializationException
extendDeflate in class FieldDefinitionout - the stream to deflate to
GRS2RecordSerializationException - A serialization error occurredFieldDefinition.extendDeflate(java.io.DataOutput)
public void extendInflate(java.io.DataInput in)
throws GRS2RecordSerializationException
extendInflate in class FieldDefinitionin - the stream to inflate from
GRS2RecordSerializationException - A deserialization error occurredFieldDefinition.extendInflate(java.io.DataInput)
public void extendToXML(org.w3c.dom.Document doc,
org.w3c.dom.Element element)
throws GRS2RecordSerializationException
extendToXML in class FieldDefinitionGRS2RecordSerializationException
public void extendFromXML(org.w3c.dom.Element element)
throws GRS2RecordSerializationException
extendFromXML in class FieldDefinitionGRS2RecordSerializationException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||