|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.extex.backend.documentWriter.rtf.RtfDocument
public class RtfDocument
This class provides a container for an RTF document.
| Constructor Summary | |
|---|---|
RtfDocument()
Creates a new object. |
|
| Method Summary | |
|---|---|
java.lang.String |
getAuthor()
Getter for author. |
java.lang.String |
getCreator()
Getter for creator. |
java.lang.String |
getTitle()
Getter for title. |
protected int |
mapColor(RgbColor col)
Add a color to the color table if necessary and return a unique index. |
protected int |
mapFont(Font font)
Add a font to the font table if necessary and return a unique index. |
void |
newPage(Color color)
Start a new page. |
protected void |
put(byte b)
Write a single byte to the target stream. |
protected void |
put(java.lang.String string)
Write some bytes from a string to the target stream. |
void |
setAuthor(java.lang.String author)
Setter for author. |
void |
setCreator(java.lang.String creator)
Setter for creator. |
void |
setTitle(java.lang.String title)
Setter for title. |
void |
write(java.io.OutputStream stream)
Write the contents of the RTF file to a target stream. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RtfDocument()
| Method Detail |
|---|
public java.lang.String getAuthor()
public java.lang.String getCreator()
public java.lang.String getTitle()
protected int mapColor(RgbColor col)
col - the color
protected int mapFont(Font font)
font - the font register
public void newPage(Color color)
throws java.io.IOException
color - the background color
java.io.IOException - in case of an error
protected void put(byte b)
throws java.io.IOException
b - the byte to write
java.io.IOException - in case of an error
protected void put(java.lang.String string)
throws java.io.IOException
string - the source string
java.io.IOException - in case of an errorpublic void setAuthor(java.lang.String author)
author - the author to setpublic void setCreator(java.lang.String creator)
creator - the creator to setpublic void setTitle(java.lang.String title)
title - the title to set
public void write(java.io.OutputStream stream)
throws java.io.IOException
stream - the target stream
java.io.IOException - in case of an error
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||