public class RtfChunk extends RtfElement
document, inHeader, inTableCLOSE_GROUP, COMMA_DELIMITER, DELIMITER, OPEN_GROUP, TWIPS_FACTOR| Constructor and Description |
|---|
RtfChunk(RtfDocument doc,
com.lowagie.text.Chunk chunk)
Constructs a RtfChunk based on the content of a Chunk
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
getSoftLineBreaks()
Gets whether to use soft line breaks instead of default hard ones.
|
void |
setRtfDocument(RtfDocument doc)
Sets the RtfDocument this RtfChunk belongs to.
|
void |
setSoftLineBreaks(boolean softLineBreaks)
Sets whether to use soft line breaks instead of default hard ones.
|
void |
writeContent(OutputStream result)
Writes the content of this RtfChunk.
|
intToByteArray, isInTable, setInHeader, setInTablepublic RtfChunk(RtfDocument doc, com.lowagie.text.Chunk chunk)
doc - The RtfDocument that this Chunk belongs tochunk - The Chunk that this RtfChunk is based onpublic void writeContent(OutputStream result) throws IOException
writeContent in interface RtfBasicElementwriteContent in class RtfElementresult - The OutputStream to write the content toIOExceptionpublic void setRtfDocument(RtfDocument doc)
setRtfDocument in interface RtfBasicElementsetRtfDocument in class RtfElementdoc - The RtfDocument to usepublic void setSoftLineBreaks(boolean softLineBreaks)
softLineBreaks - whether to use soft line breaks instead of default hard ones.public boolean getSoftLineBreaks()
Copyright © 2017. All rights reserved.