Skip navigation links
  • Overview
  • Package
  • Class
  • Use
  • Tree
  • Deprecated
  • Index
  • Help

Deprecated API

Contents

  • Terminally Deprecated
  • Fields
  • Methods
  • Constructors
  • Terminally Deprecated Elements
    Element
    Description
    org.apache.poi.openxml4j.util.ZipSecureFile.getName()
    there is no need for this method - it will be removed in a future version of POI (deprecated since POI 5.3.0)
    org.apache.poi.xssf.model.ExternalLinksTable.getCTExternalLink()
    will be removed because we don't want to expose this (future implementations may not be XMLBeans based)
  • Deprecated Fields
    Field
    Description
    org.apache.poi.xssf.usermodel.XSSFPictureData.RELATIONS
    the field will be removed
    org.apache.poi.xwpf.usermodel.XWPFPictureData.RELATIONS
    the field will be removed
  • Deprecated Methods
    Method
    Description
    org.apache.poi.ooxml.POIXMLDocumentPart._invokeOnDocumentRead(POIXMLDocumentPart)
    This method only exists to allow access to protected POIXMLDocumentPart.onDocumentRead() from XWPFDocument without reflection. It should be removed.
    org.apache.poi.openxml4j.util.ZipSecureFile.getName()
    there is no need for this method - it will be removed in a future version of POI (deprecated since POI 5.3.0)
    org.apache.poi.xssf.binary.XSSFBSheetHandler.SheetContentsHandler.hyperlinkCell(String, String, String, String, XSSFComment)
    use XSSFBSheetHandler.SheetContentsHandler.hyperlinkCell(String, String, String, String, Comment)
    org.apache.poi.xssf.eventusermodel.XSSFSheetXMLHandler.SheetContentsHandler.cell(String, String, XSSFComment)
    use XSSFSheetXMLHandler.SheetContentsHandler.cell(String, String, Comment)
    org.apache.poi.xssf.model.ExternalLinksTable.getCTExternalLink()
    will be removed because we don't want to expose this (future implementations may not be XMLBeans based)
    org.apache.poi.xssf.streaming.SXSSFSheet.createSplitPane(int, int, int, int, int)
    use SXSSFSheet.createSplitPane(int, int, int, int, PaneType)
    org.apache.poi.xssf.streaming.SXSSFSheet.getMargin(short)
    use SXSSFSheet.getMargin(PageMargin)
    org.apache.poi.xssf.streaming.SXSSFSheet.setMargin(short, double)
    use SXSSFSheet.setMargin(PageMargin, double) instead
    org.apache.poi.xssf.streaming.SXSSFWorkbook.dispose()
    use SXSSFWorkbook.close() to close the workbook instead which also disposes of the temporary files
    org.apache.poi.xssf.usermodel.XSSFSheet.createSplitPane(int, int, int, int, int)
    use XSSFSheet.createSplitPane(int, int, int, int, PaneType)
    org.apache.poi.xssf.usermodel.XSSFSheet.getMargin(short)
    use XSSFSheet.getMargin(PageMargin)
    org.apache.poi.xssf.usermodel.XSSFSheet.setMargin(short, double)
    use XSSFSheet.setMargin(PageMargin, double) instead
    org.apache.poi.xssf.usermodel.XSSFWorkbook.getExternalLinksTable()
    use getExternalLinksTables() instead
    org.apache.poi.xwpf.usermodel.XWPFComments.addPictureData(byte[], int)
    use XWPFComments.addPictureData(byte[], PictureType) instead.
    org.apache.poi.xwpf.usermodel.XWPFDocument.getNextPicNameNumber(int)
    use XWPFDocument.getNextPicNameNumber(PictureType) instead.
    org.apache.poi.xwpf.usermodel.XWPFHeaderFooter.addPictureData(byte[], int)
    Use XWPFHeaderFooter.addPictureData(byte[], PictureType) instead.
    org.apache.poi.xwpf.usermodel.XWPFParagraph.setWordWrap(boolean)
    org.apache.poi.xwpf.usermodel.XWPFPictureData.getPictureType()
    use #getPictureTypeEnum()
    org.apache.poi.xwpf.usermodel.XWPFRun.addPicture(InputStream, int, String, int, int)
    use #addPicture(InputStream, PictureType, String, int, int)
    org.apache.poi.xwpf.usermodel.XWPFRun.getFontSize()
    use XWPFRun.getFontSizeAsDouble()
    org.apache.poi.xwpf.usermodel.XWPFRun.getParagraph()
    use XWPFRun.getParent() instead
    org.apache.poi.xwpf.usermodel.XWPFRun.getTextHightlightColor()
    use XWPFRun.getTextHighlightColor() instead
    org.apache.poi.xwpf.usermodel.XWPFRun.isStrike()
    org.apache.poi.xwpf.usermodel.XWPFRun.setStrike(boolean)
  • Deprecated Constructors
    Constructor
    Description
    org.apache.poi.xwpf.usermodel.XWPFRun(CTR, XWPFParagraph)
    Use XWPFRun(CTR, IRunBody)