Java Doc for PdfObject.java in  » PDF » pdf-itext » com » lowagie » text » pdf » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » PDF » pdf itext » com.lowagie.text.pdf 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.lowagie.text.pdf.PdfObject

All known Subclasses:   com.lowagie.text.pdf.PdfName,  com.lowagie.text.pdf.PdfNumber,  com.lowagie.text.pdf.PdfBoolean,  com.lowagie.text.pdf.PdfArray,  com.lowagie.text.pdf.PdfString,  com.lowagie.text.pdf.PdfDictionary,  com.lowagie.text.pdf.PdfNull,  com.lowagie.text.pdf.PdfLiteral,  com.lowagie.text.pdf.PdfIndirectReference,
PdfObject
abstract public class PdfObject (Code)
PdfObject is the abstract superclass of all PDF objects.

PDF supports seven basic types of objects: Booleans, numbers, strings, names, arrays, dictionaries and streams. In addition, PDF provides a null object. Objects may be labeled so that they can be referred to by other objects.
All these basic PDF objects are described in the 'Portable Document Format Reference Manual version 1.3' Chapter 4 (pages 37-54).
See Also:   PdfNull
See Also:   PdfBoolean
See Also:   PdfNumber
See Also:   PdfString
See Also:   PdfName
See Also:   PdfArray
See Also:   PdfDictionary
See Also:   PdfStream
See Also:   PdfIndirectReference



Field Summary
final public static  intARRAY
    
final public static  intBOOLEAN
    
final public static  intDICTIONARY
    
final public static  intINDIRECT
    
final public static  intNAME
    
final public static  StringNOTHING
     This is an empty string used for the PdfNull-object and for an empty PdfString-object.
final public static  intNULL
    
final public static  intNUMBER
    
final public static  intSTREAM
    
final public static  intSTRING
    
final public static  StringTEXT_PDFDOCENCODING
     This is the default encoding to be used for converting Strings into bytes and vice versa.
final public static  StringTEXT_UNICODE
     This is the encoding to be used to output text in Unicode.
protected  byte[]bytes
    
protected  PRIndirectReferenceindRef
     Holds value of property indRef.
protected  inttype
    

Constructor Summary
protected  PdfObject(int type)
     Constructs a PdfObject of a certain type without any content.
protected  PdfObject(int type, String content)
     Constructs a PdfObject of a certain type with a certain content.
protected  PdfObject(int type, byte[] bytes)
     Constructs a PdfObject of a certain type with a certain content.

Method Summary
public  booleancanBeInObjStm()
    
public  byte[]getBytes()
    
public  PRIndirectReferencegetIndRef()
     Getter for property indRef.
public  booleanisArray()
     Checks if this PdfObject is of the type PdfArray.
public  booleanisBoolean()
     Checks if this PdfObject is of the type PdfBoolean.
public  booleanisDictionary()
     Checks if this PdfObject is of the type PdfDictionary.
public  booleanisIndirect()
     Checks if this is an indirect object.
public  booleanisName()
     Checks if this PdfObject is of the type PdfName.
public  booleanisNull()
     Checks if this PdfObject is of the type PdfNull.
public  booleanisNumber()
     Checks if this PdfObject is of the type PdfNumber.
public  booleanisStream()
     Checks if this PdfObject is of the type PdfStream.
public  booleanisString()
     Checks if this PdfObject is of the type PdfString.
public  intlength()
     Returns the length of the actual content of the PdfObject.
protected  voidsetContent(String content)
     Changes the content of this PdfObject.
public  voidsetIndRef(PRIndirectReference indRef)
     Setter for property indRef.
public  voidtoPdf(PdfWriter writer, OutputStream os)
     Writes the PDF representation of this PdfObject as an array of bytes to the writer.
public  StringtoString()
     Returns the String-representation of this PdfObject.
public  inttype()
     Returns the type of this PdfObject.

Field Detail
ARRAY
final public static int ARRAY(Code)
a possible type of PdfObject



BOOLEAN
final public static int BOOLEAN(Code)
a possible type of PdfObject



DICTIONARY
final public static int DICTIONARY(Code)
a possible type of PdfObject



INDIRECT
final public static int INDIRECT(Code)
a possible type of PdfObject



NAME
final public static int NAME(Code)
a possible type of PdfObject



NOTHING
final public static String NOTHING(Code)
This is an empty string used for the PdfNull-object and for an empty PdfString-object.



NULL
final public static int NULL(Code)
a possible type of PdfObject



NUMBER
final public static int NUMBER(Code)
a possible type of PdfObject



STREAM
final public static int STREAM(Code)
a possible type of PdfObject



STRING
final public static int STRING(Code)
a possible type of PdfObject



TEXT_PDFDOCENCODING
final public static String TEXT_PDFDOCENCODING(Code)
This is the default encoding to be used for converting Strings into bytes and vice versa. The default encoding is PdfDocEncoding.



TEXT_UNICODE
final public static String TEXT_UNICODE(Code)
This is the encoding to be used to output text in Unicode.



bytes
protected byte[] bytes(Code)
the content of this PdfObject



indRef
protected PRIndirectReference indRef(Code)
Holds value of property indRef.



type
protected int type(Code)
the type of this PdfObject




Constructor Detail
PdfObject
protected PdfObject(int type)(Code)
Constructs a PdfObject of a certain type without any content.
Parameters:
  type - type of the new PdfObject



PdfObject
protected PdfObject(int type, String content)(Code)
Constructs a PdfObject of a certain type with a certain content.
Parameters:
  type - type of the new PdfObject
Parameters:
  content - content of the new PdfObject as a String.



PdfObject
protected PdfObject(int type, byte[] bytes)(Code)
Constructs a PdfObject of a certain type with a certain content.
Parameters:
  type - type of the new PdfObject
Parameters:
  bytes - content of the new PdfObject as an array of byte.




Method Detail
canBeInObjStm
public boolean canBeInObjStm()(Code)
Can this object be in an object stream? true if this object can be in an object stream.



getBytes
public byte[] getBytes()(Code)
Gets the presentation of this object in a byte array a byte array



getIndRef
public PRIndirectReference getIndRef()(Code)
Getter for property indRef. Value of property indRef.



isArray
public boolean isArray()(Code)
Checks if this PdfObject is of the type PdfArray. true or false



isBoolean
public boolean isBoolean()(Code)
Checks if this PdfObject is of the type PdfBoolean. true or false



isDictionary
public boolean isDictionary()(Code)
Checks if this PdfObject is of the type PdfDictionary. true or false



isIndirect
public boolean isIndirect()(Code)
Checks if this is an indirect object. true if this is an indirect object



isName
public boolean isName()(Code)
Checks if this PdfObject is of the type PdfName. true or false



isNull
public boolean isNull()(Code)
Checks if this PdfObject is of the type PdfNull. true or false



isNumber
public boolean isNumber()(Code)
Checks if this PdfObject is of the type PdfNumber. true or false



isStream
public boolean isStream()(Code)
Checks if this PdfObject is of the type PdfStream. true or false



isString
public boolean isString()(Code)
Checks if this PdfObject is of the type PdfString. true or false



length
public int length()(Code)
Returns the length of the actual content of the PdfObject.

In some cases, namely for PdfString and PdfStream, this method differs from the method pdfLength because pdfLength returns the length of the PDF representation of the object, not of the actual content as does the method length.

Remark: the actual content of an object is in some cases identical to its representation. The following statement is always true: length() >= pdfLength().

a length



setContent
protected void setContent(String content)(Code)
Changes the content of this PdfObject.
Parameters:
  content - the new content of this PdfObject



setIndRef
public void setIndRef(PRIndirectReference indRef)(Code)
Setter for property indRef.
Parameters:
  indRef - New value of property indRef.



toPdf
public void toPdf(PdfWriter writer, OutputStream os) throws IOException(Code)
Writes the PDF representation of this PdfObject as an array of bytes to the writer.
Parameters:
  writer - for backwards compatibility
Parameters:
  os - the outputstream to write the bytes to.
throws:
  IOException -



toString
public String toString()(Code)
Returns the String-representation of this PdfObject. a String



type
public int type()(Code)
Returns the type of this PdfObject. a type



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.