Example usage for Java org.apache.poi.xwpf.usermodel XWPFDocument fields, constructors, methods, implement or subclass
The text is from its open source code.
String | addPictureData(byte[] pictureData, int format) |
String | addPictureData(InputStream is, int format) |
void | close() 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. |
XWPFNumbering | createNumbering() Creates an empty numbering if one does not already exist and sets the numbering member |
XWPFParagraph | createParagraph() Appends a new paragraph to this document |
XWPFStyles | createStyles() Creates an empty styles for the document if one does not already exist |
XWPFTable | createTable(int rows, int cols) Create an empty table with a number of rows and cols specified |
XWPFTable | createTable() Create an empty table with one row and one column as default. |
List | getAllPictures() Returns all Pictures, which are referenced from the document itself. |
List | getBodyElements() returns an Iterator with paragraphs and tables |
Iterator | getBodyElementsIterator() |
CTDocument1 | getDocument() Returns the low level document base object |
List | getFooterList() |
XWPFHeaderFooterPolicy | getHeaderFooterPolicy() Returns the policy on headers and footers, which also provides a way to get at them. |
List | getHeaderList() |
XWPFParagraph | getLastParagraph() |
XWPFNumbering | getNumbering() getNumbering |
XWPFParagraph | getParagraphArray(int pos) Returns the paragraph that of position pos |
List | getParagraphs() |
Iterator | getParagraphsIterator() |
int | getPosOfTable(XWPFTable t) Get the position of the table, within the list of all the body elements. |
POIXMLProperties | getProperties() Get the document properties. |
CTStyles | getStyle() Returns the styles object used |
XWPFStyles | getStyles() get Styles |
XWPFTable | getTableArray(int pos) |
List | getTables() |
XWPFDocument | getXWPFDocument() |
boolean | removeBodyElement(int pos) remove a BodyElement from bodyElements array list |
void | setParagraph(XWPFParagraph paragraph, int pos) copies content of a paragraph to a existing paragraph in the list paragraphs at position pos |
void | setTable(int pos, XWPFTable table) Replace content of table in array tables at position pos with a |
void | write(OutputStream stream) Write out this document to an Outputstream. |