public class FileFieldDefinition extends FieldDefinition
FieldDefinition implementation for FileField| Modifier and Type | Field and Description |
|---|---|
static 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 String |
DefaultMimeType
The default MIME type currently set to application/octet-stream
|
DefaultChunkSize, DefaultDoCompress| Constructor and Description |
|---|
FileFieldDefinition()
Creates a new instance
|
FileFieldDefinition(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 path
|
boolean |
getDeleteOnDispose()
Retrieves the local file cleanup behavior
|
int |
getLocalBuffer()
Retrieves the local buffer size used when accessing the local file
|
void |
setCharset(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
|
deflate, equals, fromXML, getChunkSize, getMimeType, getName, getTransportDirective, inflate, isCompress, setChunkSize, setCompress, setMimeType, setName, setTransportDirective, toXMLpublic static final String DefaultMimeType
public static final IBuffer.TransportDirective DefaultDirective
IBuffer.TransportDirective.Inheritpublic static final String DefaultCharset
public static final int DefaultLocalBuffer
public static final boolean DefaultDeleteOnDispose
public FileFieldDefinition()
public FileFieldDefinition(String name)
name - the field definition namepublic void setCharset(String charset)
charset - the charset namepublic 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(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.