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:
  • Constructor Details

    • DataDocument

      public DataDocument(byte[] data, String contentType)
      Create a data transport document.
      Parameters:
      data - the document data content
      contentType - the document content type
    • DataDocument

      public DataDocument(byte[] data, String contentType, String name)
      Create a data transport document.
      Parameters:
      data - the document data content
      contentType - the document content type
  • Method Details

    • 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