com.lowagie.text.rtf
public abstract class RtfElement extends Object implements RtfBasicElement
Version: $Id: RtfElement.java 2808 2007-05-30 10:58:16Z psoares33 $
Field Summary | |
---|---|
protected RtfDocument | document
The RtfDocument this RtfElement belongs to |
protected boolean | inHeader
Whether this RtfElement is in a header |
protected boolean | inTable
Whether this RtfElement is in a table |
Constructor Summary | |
---|---|
RtfElement(RtfDocument doc)
Constructs a RtfElement belonging to the specified RtfDocument.
|
Method Summary | |
---|---|
byte[] | intToByteArray(int i)
Transforms an integer into its String representation and then returns the bytes
of that string.
|
boolean | isInTable()
Gets whether this RtfElement is in a table
|
void | setInHeader(boolean inHeader)
Sets whether this RtfElement is in a header
|
void | setInTable(boolean inTable)
Sets whether this RtfElement is in a table
|
void | setRtfDocument(RtfDocument doc)
Sets the RtfDocument this RtfElement belongs to
|
abstract byte[] | write()
Returns the content of the RtfElement in a byte array.
|
void | writeContent(OutputStream out)
Writes the element content to the given output stream. |
Parameters: doc The RtfDocument this RtfElement belongs to
Parameters: i The integer to convert
Returns: A byte array representing the integer
Returns: Whether this RtfElement is in a table
Parameters: inHeader True
if this RtfElement is in a header, false
otherwise
Parameters: inTable True
if this RtfElement is in a table, false
otherwise
Parameters: doc The RtfDocument to use
Deprecated: replaced by writeContent
Returns the content of the RtfElement in a byte array.Returns: An empty byte array