org.apache.poi.xssf.usermodel
Class XSSFFactory
- java.lang.Object
-
- org.apache.poi.POIXMLFactory
-
- org.apache.poi.xssf.usermodel.XSSFFactory
-
public final class XSSFFactory extends POIXMLFactory
Instantiates sub-classes of POIXMLDocumentPart depending on their relationship type
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description POIXMLDocumentPartcreateDocumentPart(POIXMLDocumentPart parent, PackageRelationship rel, PackagePart part)Create a POIXMLDocumentPart from existing package part and relation.static XSSFFactorygetInstance()POIXMLDocumentPartnewDocumentPart(POIXMLRelation descriptor)Create a new POIXMLDocumentPart using the supplied descriptor.
-
-
-
Method Detail
-
getInstance
public static XSSFFactory getInstance()
-
createDocumentPart
public POIXMLDocumentPart createDocumentPart(POIXMLDocumentPart parent, PackageRelationship rel, PackagePart part)
Description copied from class:POIXMLFactoryCreate a POIXMLDocumentPart from existing package part and relation. This method is called fromPOIXMLDocument.load(POIXMLFactory)when parsing a document- Specified by:
createDocumentPartin classPOIXMLFactory- Parameters:
parent- parent partrel- the package part relationshippart- the PackagePart representing the created instance- Returns:
- A new instance of a POIXMLDocumentPart.
-
newDocumentPart
public POIXMLDocumentPart newDocumentPart(POIXMLRelation descriptor)
Description copied from class:POIXMLFactoryCreate 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.- Specified by:
newDocumentPartin classPOIXMLFactory- Parameters:
descriptor- describes the object to create- Returns:
- A new instance of a POIXMLDocumentPart.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG