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