org.hccp.pdf
Class Body

java.lang.Object
  |
  +--org.hccp.pdf.Body
All Implemented Interfaces:
DocumentObject

public class Body
extends java.lang.Object
implements DocumentObject

The body of a PDF file consists of a sequence of indirect objects representing the contents of a document.

See Also:
IndirectObject, DocumentObject

Constructor Summary
Body()
           
 
Method Summary
 void addObject(org.hccp.pdf.DocumentObject documentobject)
          This method is used to add a DocumentObject to this Body.
 java.util.Vector getBodyObjects()
          This method returns a Vector of this Body's collected objects.
 org.hccp.pdf.Numeric getSize()
          This method returns the total size as a Numeric, in bytes, of this Body's collected objects,
 java.lang.String getValue()
          This method cycles through it's collected objects, calling getValue() on each, returning the ASCII encoded PDF representation of the object and child objects.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Body

public Body()
Method Detail

addObject

public void addObject(org.hccp.pdf.DocumentObject documentobject)
This method is used to add a DocumentObject to this Body.

See Also:
DocumentObject

getValue

public java.lang.String getValue()
This method cycles through it's collected objects, calling getValue() on each, returning the ASCII encoded PDF representation of the object and child objects.

Specified by:
getValue in interface DocumentObject

getSize

public org.hccp.pdf.Numeric getSize()
This method returns the total size as a Numeric, in bytes, of this Body's collected objects,

Returns:
a Numeric representation of the Body size

getBodyObjects

public java.util.Vector getBodyObjects()
This method returns a Vector of this Body's collected objects.

Returns:
a Vector of this Body's collected objects
See Also:
DocumentObject