Package org.apache.poi.xssf.usermodel
Class XSSFFactory
- java.lang.Object
-
- org.apache.poi.ooxml.POIXMLFactory
-
- org.apache.poi.xssf.usermodel.XSSFFactory
-
public class XSSFFactory extends POIXMLFactory
Instantiates sub-classes of POIXMLDocumentPart depending on their relationship type
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedXSSFFactory()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected POIXMLDocumentPartcreateDocumentPart(java.lang.Class<? extends POIXMLDocumentPart> cls, java.lang.Class<?>[] classes, java.lang.Object[] values)Need to delegate instantiation to sub class because of constructor visibilityprotected POIXMLRelationgetDescriptor(java.lang.String relationshipType)returns the descriptor for the given relationship typestatic XSSFFactorygetInstance()-
Methods inherited from class org.apache.poi.ooxml.POIXMLFactory
createDocumentPart, getPackageRelationship, newDocumentPart
-
-
-
-
Method Detail
-
getInstance
public static XSSFFactory getInstance()
-
getDescriptor
protected POIXMLRelation getDescriptor(java.lang.String relationshipType)
Description copied from class:POIXMLFactoryreturns the descriptor for the given relationship type- Specified by:
getDescriptorin classPOIXMLFactory- Parameters:
relationshipType- the relationship type of the descriptor- Returns:
- the descriptor or null if type is unknown
- Since:
- POI 3.14-Beta1
-
createDocumentPart
protected POIXMLDocumentPart createDocumentPart(java.lang.Class<? extends POIXMLDocumentPart> cls, java.lang.Class<?>[] classes, java.lang.Object[] values) throws java.lang.SecurityException, java.lang.NoSuchMethodException, java.lang.InstantiationException, java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException
Description copied from class:POIXMLFactoryNeed to delegate instantiation to sub class because of constructor visibility- Specified by:
createDocumentPartin classPOIXMLFactory- Parameters:
cls- the document class to be instantiatedclasses- the classes of the constructor argumentsvalues- the values of the constructor arguments- Returns:
- the new document / part
- Throws:
java.lang.SecurityException- thrown if the object can't be instantiatedjava.lang.NoSuchMethodException- thrown if there is no constructor found for the given argumentsjava.lang.InstantiationException- thrown if the object can't be instantiatedjava.lang.IllegalAccessException- thrown if the object can't be instantiatedjava.lang.reflect.InvocationTargetException- thrown if the object can't be instantiated- Since:
- POI 3.14-Beta1
-
-