Java org.apache.poi.xwpf.usermodel XWPFDocument fields, constructors, methods, implement or subclass

Example usage for Java org.apache.poi.xwpf.usermodel XWPFDocument fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.apache.poi.xwpf.usermodel XWPFDocument.

The text is from its open source code.

Subclass

org.apache.poi.xwpf.usermodel.XWPFDocument has subclasses.
Click this link to see all its subclasses.

Constructor

Method

StringaddPictureData(byte[] pictureData, int format)
StringaddPictureData(InputStream is, int format)
voidclose()
Closes the underlying OPCPackage from which this document was read, if there is one

Once this has been called, no further operations, updates or reads should be performed on the document.

XWPFNumberingcreateNumbering()
Creates an empty numbering if one does not already exist and sets the numbering member
XWPFParagraphcreateParagraph()
Appends a new paragraph to this document
XWPFStylescreateStyles()
Creates an empty styles for the document if one does not already exist
XWPFTablecreateTable(int rows, int cols)
Create an empty table with a number of rows and cols specified
XWPFTablecreateTable()
Create an empty table with one row and one column as default.
ListgetAllPictures()
Returns all Pictures, which are referenced from the document itself.
ListgetBodyElements()
returns an Iterator with paragraphs and tables
IteratorgetBodyElementsIterator()
CTDocument1getDocument()
Returns the low level document base object
ListgetFooterList()
XWPFHeaderFooterPolicygetHeaderFooterPolicy()
Returns the policy on headers and footers, which also provides a way to get at them.
ListgetHeaderList()
XWPFParagraphgetLastParagraph()
XWPFNumberinggetNumbering()
getNumbering
XWPFParagraphgetParagraphArray(int pos)
Returns the paragraph that of position pos
ListgetParagraphs()
IteratorgetParagraphsIterator()
intgetPosOfTable(XWPFTable t)
Get the position of the table, within the list of all the body elements.
POIXMLPropertiesgetProperties()
Get the document properties.
CTStylesgetStyle()
Returns the styles object used
XWPFStylesgetStyles()
get Styles
XWPFTablegetTableArray(int pos)
ListgetTables()
XWPFDocumentgetXWPFDocument()
booleanremoveBodyElement(int pos)
remove a BodyElement from bodyElements array list
voidsetParagraph(XWPFParagraph paragraph, int pos)
copies content of a paragraph to a existing paragraph in the list paragraphs at position pos
voidsetTable(int pos, XWPFTable table)
Replace content of table in array tables at position pos with a
voidwrite(OutputStream stream)
Write out this document to an Outputstream.