com.lowagie.text.rtf
public abstract class RtfAddableElement extends Chunk implements RtfBasicElement
Version: $Id: RtfAddableElement.java 2776 2007-05-23 20:01:40Z hallm $
Field Summary | |
---|---|
protected RtfDocument | doc
The RtfDocument this RtfAddableElement belongs to. |
protected boolean | inHeader
Whether this RtfAddableElement is contained in a header. |
protected boolean | inTable
Whether this RtfAddableElement is contained in a table. |
Constructor Summary | |
---|---|
RtfAddableElement()
Constructs a new RtfAddableElement. |
Method Summary | |
---|---|
byte[] | intToByteArray(int i)
Transforms an integer into its String representation and then returns the bytes
of that string.
|
boolean | isEmpty()
RtfAddableElement subclasses are never assumed to be empty. |
void | setInHeader(boolean inHeader)
Sets whether this RtfAddableElement is contained in a header/footer. |
void | setInTable(boolean inTable)
Sets whether this RtfAddableElement is contained in a table. |
void | setRtfDocument(RtfDocument doc)
Sets the RtfDocument this RtfAddableElement belongs to |
abstract byte[] | write()
Subclasses have to implement this method.
|
void | writeContent(OutputStream out)
Writes the element content to the given output stream.
|
Parameters: i The integer to convert
Returns: A byte array representing the integer
Deprecated: replaced by writeContent
Subclasses have to implement this method.