Package org.apache.poi.ooxml
Class POIXMLFactory
- java.lang.Object
-
- org.apache.poi.ooxml.POIXMLFactory
-
- Direct Known Subclasses:
XDGFFactory
,XSLFFactory
,XSSFFactory
,XWPFFactory
public abstract class POIXMLFactory extends java.lang.Object
Defines a factory API that enables sub-classes to create instances ofPOIXMLDocumentPart
-
-
Constructor Summary
Constructors Constructor Description POIXMLFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description POIXMLDocumentPart
createDocumentPart(POIXMLDocumentPart parent, PackagePart part)
Create a POIXMLDocumentPart from existing package part and relation.POIXMLDocumentPart
newDocumentPart(POIXMLRelation descriptor)
Create a new POIXMLDocumentPart using the supplied descriptor.
-
-
-
Method Detail
-
createDocumentPart
public POIXMLDocumentPart createDocumentPart(POIXMLDocumentPart parent, PackagePart part)
Create a POIXMLDocumentPart from existing package part and relation. This method is called fromPOIXMLDocument.load(POIXMLFactory)
when parsing a document- Parameters:
parent
- parent partpart
- the PackagePart representing the created instance- Returns:
- A new instance of a POIXMLDocumentPart.
- Since:
- by POI 3.14-Beta1
-
newDocumentPart
public POIXMLDocumentPart newDocumentPart(POIXMLRelation descriptor)
Create a new POIXMLDocumentPart using the supplied descriptor. This method is used when adding new parts to a document, for example, when adding a sheet to a workbook, slide to a presentation, etc.- Parameters:
descriptor
- describes the object to create- Returns:
- A new instance of a POIXMLDocumentPart.
-
-