Package com.avoka.fc.form.service
Class DataDocument
java.lang.Object
com.avoka.fc.form.service.DataDocument
- All Implemented Interfaces:
Serializable
Provides a platform neutral Data Document data transfer object class for Hessian RPC class.
- See Also:
-
Constructor Summary
ConstructorDescriptionDataDocument
(byte[] data, String contentType) Create a data transport document.DataDocument
(byte[] data, String contentType, String name) Create a data transport document. -
Method Summary
-
Constructor Details
-
DataDocument
Create a data transport document.- Parameters:
data
- the document data contentcontentType
- the document content type
-
DataDocument
Create a data transport document.- Parameters:
data
- the document data contentcontentType
- the document content type
-
-
Method Details
-
getBytes
public byte[] getBytes()Return the document content length.- Returns:
- the document content length
-
getContentType
Return the document content type.- Returns:
- the document content type
-
getName
Return the document file name if defined.- Returns:
- the document file name if defined
-
toUTF8String
Return a "UTF-8" string representation of the data.- Returns:
- a "UTF-8" string representation of the data
- Throws:
UnsupportedEncodingException
-