Java Doc for CSContent.java in  » PDF » jPod » de » intarsys » pdf » content » 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 » jPod » de.intarsys.pdf.content 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   de.intarsys.pdf.content.CSContent

CSContent
public class CSContent (Code)
Represents the tokenized content of a PDF rendering program which is called a "content stream".

A PDF rendering program is a sequence of operations, each build by a list of operands followed by the operator.

Any visual appearance in a PDF document is build on a content stream. For example a PDPage hosts a content stream (or a list of content streams) to define its appearance.

A content stream has no access to indirect objects, this means object references are not valid operands for operations. Complex objects are used within a content stream via an indirection defined in a resource dictionary.

The CSContent itself is decoupled from its source of creation, this means after manipulating the content stream you have to apply it where you want to (for example adding it to a page).

You can work on the content stream directly, adding and removing operations. A more elegant way to manipulate this is using a CSCreator , providing high level methods for the different content stream operations.




Constructor Summary
protected  CSContent()
     Create a new PDCContentStream.

Method Summary
public  voidaddMarkedContent(COSName mark, byte[] content)
     Add "content" at the end of the "marked content" portion in the content stream of this.
public  voidaddOperation(CSOperation op)
     Add another operation to the rendering program.
public  voidaddOperation(int index, CSOperation op)
     Add another operation to the rendering program.
public static  CSContentcreateFromBytes(byte[] data)
     Create CSContent from a byte array containing a PDF content stream.
Parameters:
  data - The bytes defining the PDF content stream.
public static  CSContentcreateFromCos(COSStream stream)
     Create CSContent from a COSStream containing a PDF content stream.
Parameters:
  stream - The stream defining containing the PDF content stream.
public static  CSContentcreateFromCos(COSArray streams)
     Create CSContent from an array of COSStream , together defining a PDF content stream.
Parameters:
  streams - An array of COSStream objects containing each a chunkof the content stream.
public static  CSContentcreateNew()
     Create a new CSContent .
public  COSStreamcreateStream()
    
public  CSOperationgetLastOperation()
     remove last operation from the rendering program.
public  CSOperationgetOperation(int index)
    
public  CSOperation[]getOperations()
    
public  voidremoveLastOperation()
     remove last operation from the rendering program.
public  voidremoveOperation(int index)
    
public  voidsetMarkedContent(COSName mark, byte[] content)
     Set the "marked content" portion in the content stream of this.
public  intsize()
     The number of operations in the content stream.
public  byte[]toByteArray()
     Create the byte representation from the list of operations.
public  StringtoString()
    


Constructor Detail
CSContent
protected CSContent()(Code)
Create a new PDCContentStream.
Parameters:
  resourceDict - The dictionary defining the external references of the contentstream.




Method Detail
addMarkedContent
public void addMarkedContent(COSName mark, byte[] content)(Code)
Add "content" at the end of the "marked content" portion in the content stream of this.
Parameters:
  mark - The type of marked content we search
Parameters:
  content - The content we want to use.



addOperation
public void addOperation(CSOperation op)(Code)
Add another operation to the rendering program.
Parameters:
  op - The new operation to append.



addOperation
public void addOperation(int index, CSOperation op)(Code)
Add another operation to the rendering program.
Parameters:
  op - The new operation to append.



createFromBytes
public static CSContent createFromBytes(byte[] data)(Code)
Create CSContent from a byte array containing a PDF content stream.
Parameters:
  data - The bytes defining the PDF content stream. The new CSContent



createFromCos
public static CSContent createFromCos(COSStream stream)(Code)
Create CSContent from a COSStream containing a PDF content stream.
Parameters:
  stream - The stream defining containing the PDF content stream. The new CSContent



createFromCos
public static CSContent createFromCos(COSArray streams)(Code)
Create CSContent from an array of COSStream , together defining a PDF content stream.
Parameters:
  streams - An array of COSStream objects containing each a chunkof the content stream. The new CSContent.



createNew
public static CSContent createNew()(Code)
Create a new CSContent . The new CSContent.



createStream
public COSStream createStream()(Code)



getLastOperation
public CSOperation getLastOperation()(Code)
remove last operation from the rendering program. the last operation, or null of no operations left



getOperation
public CSOperation getOperation(int index)(Code)



getOperations
public CSOperation[] getOperations()(Code)



removeLastOperation
public void removeLastOperation()(Code)
remove last operation from the rendering program.



removeOperation
public void removeOperation(int index)(Code)



setMarkedContent
public void setMarkedContent(COSName mark, byte[] content)(Code)
Set the "marked content" portion in the content stream of this. Marked content is enclosed between "BMC" and "EMC", the begin operation has an operand identifying the type of marked content.

The portion between the marks is replaced with content.If no marks are found, the new content is appended as a marked content section.


Parameters:
  mark - The type of marked content we search
Parameters:
  content - The content we want to use.



size
public int size()(Code)
The number of operations in the content stream. The number of operations in the content stream.



toByteArray
public byte[] toByteArray()(Code)
Create the byte representation from the list of operations. The byte representation from the list of operations.



toString
public String toString()(Code)



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.