com.raritantechnologies.genericInterface
Class DocumentContent

java.lang.Object
  extended bycom.raritantechnologies.genericInterface.DocumentContent
All Implemented Interfaces:
java.rmi.Remote

public class DocumentContent
extends java.lang.Object
implements java.rmi.Remote

Java Bean object that contains document content and information about type and format (text/binary).


Method Summary
 java.lang.String getContent()
          returns the document content as a String.
 java.lang.String getContentType()
          returns the document content type (i.e.
 boolean isBinary()
          returns true if the original document content is binary, false otherwise.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getContent

public java.lang.String getContent()
                            throws java.rmi.RemoteException
returns the document content as a String. If the original content is binary the String will be Base64 encoded.

Throws:
java.rmi.RemoteException

getContentType

public java.lang.String getContentType()
                                throws java.rmi.RemoteException
returns the document content type (i.e. mime type ).

Throws:
java.rmi.RemoteException

isBinary

public boolean isBinary()
                 throws java.rmi.RemoteException
returns true if the original document content is binary, false otherwise. if this method returns true, the getContent method will return a Base64 encoded String.

Throws:
java.rmi.RemoteException