com.ds.fw.types
Class FwDocument

java.lang.Object
  |
  +--com.ds.fw.types.FwSimpleObject
        |
        +--com.ds.fw.types.FwDocument
All Implemented Interfaces:
java.lang.Cloneable, FwCopyableIF, FwDisplayableIF, FwSimpleObjectIF, java.io.Serializable

public class FwDocument
extends FwSimpleObject

A Class class.

See Also:
Serialized Form

Constructor Summary
FwDocument()
          Constructor
 
Method Summary
 java.lang.String dataToString()
          Returns String.
 boolean getCached()
          Returns cached.
 byte[] getData()
          Returns data.
 java.lang.String getMIMEType()
          This method is used to get the MIME of the content.
 void readContentFrom(java.io.InputStream in)
          This method is used to transfer content.In the application it will be used to transfer content from the browser (e.g.
 void setCached(boolean d)
          Sets cached.
 void setData(byte[] d)
          Sets data.
 void setMIMEType(java.lang.String m)
          Sets MIMEType.
 void setSize(long s)
          Sets Size.
 long size()
          Returns Size.
 void stringToData(java.lang.String s)
          Get String.
 void writeContentTo(java.io.OutputStream out)
          This method is used to transfer content.In the application it is used to transfer content to the browser (e.g.
 
Methods inherited from class com.ds.fw.types.FwSimpleObject
getClassName, getClone, getCopy, getCopy, getDeepCopy, getDisplayString, getDisplayStringFor, postCopy, printStackTrace, toString, toStringValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FwDocument

public FwDocument()
Constructor

Method Detail

writeContentTo

public void writeContentTo(java.io.OutputStream out)
                    throws java.io.IOException
This method is used to transfer content.In the application it is used to transfer content to the browser (e.g. writeContentTo(HttpResponse.getOutputStream())

java.io.IOException

readContentFrom

public void readContentFrom(java.io.InputStream in)
                     throws java.io.IOException
This method is used to transfer content.In the application it will be used to transfer content from the browser (e.g. readContentFrom(HttpRequest.getInputStream())

java.io.IOException

getMIMEType

public java.lang.String getMIMEType()
This method is used to get the MIME of the content.


setMIMEType

public void setMIMEType(java.lang.String m)
Sets MIMEType.


setData

public void setData(byte[] d)
Sets data.


getData

public byte[] getData()
Returns data.


setSize

public void setSize(long s)
Sets Size.


size

public long size()
Returns Size.


setCached

public void setCached(boolean d)
Sets cached.


getCached

public boolean getCached()
Returns cached.


dataToString

public java.lang.String dataToString()
Returns String.


stringToData

public void stringToData(java.lang.String s)
Get String.