com.lowagie.text

Interface LargeElement

public interface LargeElement extends Element

Interface implemented by Element objects that can potentially consume a lot of memory. Objects implementing the LargeElement interface can be added to a Document more than once. If you have invoked setComplete(false), they will be added partially and the content that was added will be removed until you've invoked setComplete(true);

Since: iText 2.0.8

Method Summary
voidflushContent()
Flushes the content that has been added.
booleanisComplete()
Indicates if the element is complete or not.
voidsetComplete(boolean complete)
If you invoke setComplete(false), you indicate that the content of the object isn't complete yet; it can be added to the document partially, but more will follow.

Method Detail

flushContent

public void flushContent()
Flushes the content that has been added.

isComplete

public boolean isComplete()
Indicates if the element is complete or not.

Returns: indicates if the element is complete according to the user.

Since: iText 2.0.8

setComplete

public void setComplete(boolean complete)
If you invoke setComplete(false), you indicate that the content of the object isn't complete yet; it can be added to the document partially, but more will follow. If you invoke setComplete(true), you indicate that you won't add any more data to the object.

Parameters: complete false if you'll be adding more data after adding the object to the document.

Since: iText 2.0.8