org.apache.poi.xssf.usermodel
Class XSSFRelation
java.lang.Object
org.apache.poi.POIXMLRelation
org.apache.poi.xssf.usermodel.XSSFRelation
public final class XSSFRelation
- extends POIXMLRelation
Method Summary |
java.io.InputStream |
getContents(PackagePart corePart)
Fetches the InputStream to read the contents, based
of the specified core part, for which we are defined
as a suitable relationship |
static XSSFRelation |
getInstance(java.lang.String rel)
Get POIXMLRelation by relation type |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
_table
protected static java.util.Map<java.lang.String,XSSFRelation> _table
- A map to lookup POIXMLRelation by its relation type
WORKBOOK
public static final XSSFRelation WORKBOOK
MACROS_WORKBOOK
public static final XSSFRelation MACROS_WORKBOOK
TEMPLATE_WORKBOOK
public static final XSSFRelation TEMPLATE_WORKBOOK
MACRO_TEMPLATE_WORKBOOK
public static final XSSFRelation MACRO_TEMPLATE_WORKBOOK
MACRO_ADDIN_WORKBOOK
public static final XSSFRelation MACRO_ADDIN_WORKBOOK
WORKSHEET
public static final XSSFRelation WORKSHEET
CHARTSHEET
public static final XSSFRelation CHARTSHEET
SHARED_STRINGS
public static final XSSFRelation SHARED_STRINGS
STYLES
public static final XSSFRelation STYLES
DRAWINGS
public static final XSSFRelation DRAWINGS
VML_DRAWINGS
public static final XSSFRelation VML_DRAWINGS
CHART
public static final XSSFRelation CHART
CUSTOM_XML_MAPPINGS
public static final XSSFRelation CUSTOM_XML_MAPPINGS
SINGLE_XML_CELLS
public static final XSSFRelation SINGLE_XML_CELLS
TABLE
public static final XSSFRelation TABLE
IMAGES
public static final XSSFRelation IMAGES
IMAGE_EMF
public static final XSSFRelation IMAGE_EMF
IMAGE_WMF
public static final XSSFRelation IMAGE_WMF
IMAGE_PICT
public static final XSSFRelation IMAGE_PICT
IMAGE_JPEG
public static final XSSFRelation IMAGE_JPEG
IMAGE_PNG
public static final XSSFRelation IMAGE_PNG
IMAGE_DIB
public static final XSSFRelation IMAGE_DIB
IMAGE_GIF
public static final XSSFRelation IMAGE_GIF
IMAGE_TIFF
public static final XSSFRelation IMAGE_TIFF
IMAGE_EPS
public static final XSSFRelation IMAGE_EPS
IMAGE_BMP
public static final XSSFRelation IMAGE_BMP
IMAGE_WPG
public static final XSSFRelation IMAGE_WPG
SHEET_COMMENTS
public static final XSSFRelation SHEET_COMMENTS
SHEET_HYPERLINKS
public static final XSSFRelation SHEET_HYPERLINKS
OLEEMBEDDINGS
public static final XSSFRelation OLEEMBEDDINGS
PACKEMBEDDINGS
public static final XSSFRelation PACKEMBEDDINGS
VBA_MACROS
public static final XSSFRelation VBA_MACROS
ACTIVEX_CONTROLS
public static final XSSFRelation ACTIVEX_CONTROLS
ACTIVEX_BINS
public static final XSSFRelation ACTIVEX_BINS
THEME
public static final XSSFRelation THEME
CALC_CHAIN
public static final XSSFRelation CALC_CHAIN
PRINTER_SETTINGS
public static final XSSFRelation PRINTER_SETTINGS
getContents
public java.io.InputStream getContents(PackagePart corePart)
throws java.io.IOException,
InvalidFormatException
- Fetches the InputStream to read the contents, based
of the specified core part, for which we are defined
as a suitable relationship
- Throws:
java.io.IOException
InvalidFormatException
getInstance
public static XSSFRelation getInstance(java.lang.String rel)
- Get POIXMLRelation by relation type
- Parameters:
rel
- relation type, for example,
http://schemas.openxmlformats.org/officeDocument/2006/relationships/image
- Returns:
- registered POIXMLRelation or null if not found
Copyright 2012 The Apache Software Foundation or
its licensors, as applicable.