Class 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 Detail

      • 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 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