Java Doc for RtfWriter2.java in  » PDF » pdf-itext » com » lowagie » text » rtf » 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.rtf 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.lowagie.text.DocWriter
      com.lowagie.text.rtf.RtfWriter2

RtfWriter2
public class RtfWriter2 extends DocWriter (Code)
The RtfWriter allows the creation of rtf documents via the iText system Version: $Id: RtfWriter2.java 2623 2007-02-23 22:28:28Z xlv $
author:
   Mark Hall (mhall@edu.uni-klu.ac.at)



Constructor Summary
protected  RtfWriter2(Document doc, OutputStream os)
     Constructs a new RtfWriter that listens to the specified Document and writes its output to the OutputStream.

Method Summary
public  booleanadd(Element element)
    
public  voidclearTextWrap()
    
public  voidclose()
     Closes the RtfDocument.
public  RtfDocumentSettingsgetDocumentSettings()
     Gets the RtfDocumentSettings that specify how the rtf document is generated.
public static  RtfWriter2getInstance(Document doc, OutputStream os)
    
public  voidimportRtfDocument(Reader documentSource)
     Adds the complete RTF document to the current RTF document being generated.
public  voidimportRtfFragment(Reader documentSource, RtfImportMappings mappings)
     Adds a fragment of an RTF document to the current RTF document being generated. Since this fragment doesn't contain font or color tables, all fonts and colors are mapped to the default font and color.
public  booleannewPage()
    
public  voidopen()
    
public  voidresetFooter()
    
public  voidresetHeader()
    
public  voidresetPageCount()
    
public  voidsetAutogenerateTOCEntries(boolean autogenerate)
     Whether to automagically generate table of contents entries when adding Chapters or Sections.
public  voidsetDataCacheStyle(int dataCacheStyle)
     Sets the rtf data cache style to use.
public  voidsetFooter(HeaderFooter hf)
    
public  voidsetHeader(HeaderFooter hf)
    
public  booleansetMargins(float left, float right, float top, float bottom)
    
public  voidsetPageCount(int i)
    
public  booleansetPageSize(Rectangle rect)
    


Constructor Detail
RtfWriter2
protected RtfWriter2(Document doc, OutputStream os)(Code)
Constructs a new RtfWriter that listens to the specified Document and writes its output to the OutputStream.
Parameters:
  doc - The Document that this RtfWriter listens to
Parameters:
  os - The OutputStream to write to




Method Detail
add
public boolean add(Element element) throws DocumentException(Code)
Adds an Element to the Document
Parameters:
  element - The element to be added false
throws:
  DocumentException -



clearTextWrap
public void clearTextWrap()(Code)
This method is not supported in the RtfWriter



close
public void close()(Code)
Closes the RtfDocument. This causes the document to be written to the specified OutputStream



getDocumentSettings
public RtfDocumentSettings getDocumentSettings()(Code)
Gets the RtfDocumentSettings that specify how the rtf document is generated. The current RtfDocumentSettings.



getInstance
public static RtfWriter2 getInstance(Document doc, OutputStream os)(Code)
Static method to generate RtfWriters
Parameters:
  doc - The Document that this RtfWriter listens to
Parameters:
  os - The OutputStream to write to The new RtfWriter



importRtfDocument
public void importRtfDocument(Reader documentSource) throws IOException, DocumentException(Code)
Adds the complete RTF document to the current RTF document being generated. It will parse the font and color tables and correct the font and color references so that the imported RTF document retains its formattings.
Parameters:
  documentSource - The Reader to read the RTF document from.
throws:
  IOException - On errors reading the RTF document.
throws:
  DocumentException - On errors adding to this RTF document.



importRtfFragment
public void importRtfFragment(Reader documentSource, RtfImportMappings mappings) throws IOException, DocumentException(Code)
Adds a fragment of an RTF document to the current RTF document being generated. Since this fragment doesn't contain font or color tables, all fonts and colors are mapped to the default font and color. If the font and color mappings are known, they can be specified via the mappings parameter.
Parameters:
  documentSource - The Reader to read the RTF fragment from.
Parameters:
  mappings - The RtfImportMappings that contain font and color mappings to apply to the fragment.
throws:
  IOException - On errors reading the RTF fragment.
throws:
  DocumentException - On errors adding to this RTF fragment.



newPage
public boolean newPage()(Code)
Adds a page break false



open
public void open()(Code)
Opens the RtfDocument
throws:
  IOException -



resetFooter
public void resetFooter()(Code)
Resets the footer



resetHeader
public void resetHeader()(Code)
Resets the header



resetPageCount
public void resetPageCount()(Code)
This method is not supported in the RtfWriter



setAutogenerateTOCEntries
public void setAutogenerateTOCEntries(boolean autogenerate)(Code)
Whether to automagically generate table of contents entries when adding Chapters or Sections.
Parameters:
  autogenerate - Whether to automatically generate TOC entries



setDataCacheStyle
public void setDataCacheStyle(int dataCacheStyle)(Code)
Sets the rtf data cache style to use. Valid values are given in the RtfDataCache class.
Parameters:
  dataCacheStyle - The style to use.
throws:
  DocumentException - If data has already been written into the data cache.
throws:
  IOException - If the disk cache could not be initialised.



setFooter
public void setFooter(HeaderFooter hf)(Code)
Sets the footer to use
Parameters:
  hf - The HeaderFooter to use



setHeader
public void setHeader(HeaderFooter hf)(Code)
Sets the header to use
Parameters:
  hf - The HeaderFooter to use



setMargins
public boolean setMargins(float left, float right, float top, float bottom)(Code)
Sets the page margins
Parameters:
  left - The left margin
Parameters:
  right - The right margin
Parameters:
  top - The top margin
Parameters:
  bottom - The bottom margin false



setPageCount
public void setPageCount(int i)(Code)
This method is not supported in the RtfWriter
Parameters:
  i - Unused



setPageSize
public boolean setPageSize(Rectangle rect)(Code)
Sets the size of the page
Parameters:
  rect - A Rectangle representing the page false



Fields inherited from com.lowagie.text.DocWriter
final public static byte EQUALS(Code)(Java Doc)
final public static byte FORWARD(Code)(Java Doc)
final public static byte GT(Code)(Java Doc)
final public static byte LT(Code)(Java Doc)
final public static byte NEWLINE(Code)(Java Doc)
final public static byte QUOTE(Code)(Java Doc)
final public static byte SPACE(Code)(Java Doc)
final public static byte TAB(Code)(Java Doc)
protected boolean closeStream(Code)(Java Doc)
protected Document document(Code)(Java Doc)
protected boolean open(Code)(Java Doc)
protected OutputStreamCounter os(Code)(Java Doc)
protected Rectangle pageSize(Code)(Java Doc)
protected boolean pause(Code)(Java Doc)

Methods inherited from com.lowagie.text.DocWriter
public boolean add(Element element) throws DocumentException(Code)(Java Doc)
protected void addTabs(int indent) throws IOException(Code)(Java Doc)
public void close()(Code)(Java Doc)
public void flush()(Code)(Java Doc)
final public static byte[] getISOBytes(String text)(Code)(Java Doc)
public boolean isCloseStream()(Code)(Java Doc)
public boolean isPaused()(Code)(Java Doc)
public boolean newPage()(Code)(Java Doc)
public void open()(Code)(Java Doc)
public void pause()(Code)(Java Doc)
public void resetFooter()(Code)(Java Doc)
public void resetHeader()(Code)(Java Doc)
public void resetPageCount()(Code)(Java Doc)
public void resume()(Code)(Java Doc)
public void setCloseStream(boolean closeStream)(Code)(Java Doc)
public void setFooter(HeaderFooter footer)(Code)(Java Doc)
public void setHeader(HeaderFooter header)(Code)(Java Doc)
public boolean setMarginMirroring(boolean MarginMirroring)(Code)(Java Doc)
public boolean setMargins(float marginLeft, float marginRight, float marginTop, float marginBottom)(Code)(Java Doc)
public void setPageCount(int pageN)(Code)(Java Doc)
public boolean setPageSize(Rectangle pageSize)(Code)(Java Doc)
protected void write(String string) throws IOException(Code)(Java Doc)
protected void write(String key, String value) throws IOException(Code)(Java Doc)
protected void writeEnd(String tag) throws IOException(Code)(Java Doc)
protected void writeEnd() throws IOException(Code)(Java Doc)
protected boolean writeMarkupAttributes(Properties markup) throws IOException(Code)(Java Doc)
protected void writeStart(String tag) throws IOException(Code)(Java Doc)

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.