Deprecated API
Contents
-
Deprecated InterfacesInterfaceDescriptionuse XDDFChartAxis insteaduse XDDFChartData insteaduse XDDFDataSource insteaduse XDDFChartLegend insteaduse XDDFLineChartData insteaduse XDDFLineChartData.Series insteaduse XDDFManualLayout insteaduse XDDFScatterChartData insteaduse XDFFScatterChartData.Series insteaduse XDDFValueAxis instead
-
Deprecated ClassesClassDescriptionin 4.0.0, there's no way to create custom PropertyIDMaps, therefore this class is obsoletein POI 4.0.0, use
SlideShowExtractor
insteadsince 4.0.0 - use SLGraphicsPOI 4.0.0-SNAPSHOT. UseCellReference
instead. Actually the replacement CellReference was added earlier, but the deprecation notice was added only in 4.0.0-SNAPSHOT.POI 4.0.0byte positions shall not be saved in memoryNo longer used in POI code base, useOptional
insteaduse XDDFDataSourcesFactory insteaduseXDDFChartData.Series
insteaduseXDDFCategoryAxis
insteaduseXDDFChartAxis
insteaduseXDDFChartLegend
insteaduseXDDFDateAxis
insteaduseXDDFLineChartData
insteaduseinstead
useXDDFScatterChartData
insteaduseXDDFValueAxis
instead
-
Deprecated Enum ClassesEnum ClassDescriptionuse XDDF AxisCrossBetweenuse XDDF AxisCrosses insteaduse XDDF AxisOrientationuse XDDF AxisPosition insteaduse XDDF AxisTickMark insteaduse XDDF LayoutTarget insteaduse XDDF LayoutPosition insteadenum will be replaced by common version org.apache.poi.common.usermodel.FontCharset
-
Deprecated FieldsFieldDescriptionuse enum
ClassIDPredefined
use enumClassIDPredefined
use enumClassIDPredefined
use enumClassIDPredefined
use enumClassIDPredefined
use enumClassIDPredefined
use enumClassIDPredefined
use enumClassIDPredefined
use enumClassIDPredefined
use enumClassIDPredefined
use enumClassIDPredefined
use enumClassIDPredefined
use enumClassIDPredefined
use enumClassIDPredefined
use enumClassIDPredefined
use enumClassIDPredefined
use enumClassIDPredefined
use enumClassIDPredefined
use enumClassIDPredefined
use enumClassIDPredefined
use enumClassIDPredefined
use enumClassIDPredefined
use enumClassIDPredefined
use enumClassIDPredefined
use enumClassIDPredefined
use enumClassIDPredefined
use enumClassIDPredefined
POI 3.8 beta 5POI 3.8 beta 5POI 3.8 beta 5POI 3.8 beta 5POI 3.8 beta 5POI 3.8 beta 5POI 3.8 beta 5POI 3.17 beta 1
-
Deprecated MethodsMethodDescriptionuse
getType()
insteadPOI 3.15 beta 3POI 3.15 beta 3superfluous convenience methodmethod is not used within POI and will be removedmethod is not used within POI and will be removedmethod is not used within POI and will be removedusegetType
insteadin POI 3.17-beta2, use allocateShapeId(EscherDgRecord)in POI 3.17-beta2, use allocateShapeId(EscherDgRecord)POI 2.0 Best to write a input stream that wraps this one where there is special sub record that may overlap continue records.usegetCachedFormulaResultType
Will be deleted when we make the CellType enum transition. See bug 59791.3.15 beta 2. UseHSSFCell.setCellErrorValue(FormulaError)
instead.usegetType()
insteadPOI 3.15 beta 2. UseRowShifter.shiftMergedRegions(int, int, int)
.3.8 beta 43.8 beta 4POI 3.8.Though bytes are actually stored in file, it is advised to use char positions for all operations. Including save operations, because only char positions are preserved.Though bytes are actually stored in file, it is advised to use char positions for all operations. Including save operations, because only char positions are preserved.This field should not be used according to specificationThis field should not be used according to specificationThis field should not be used according to specificationThis field should not be used according to specificationThis field should not be used according to specificationThis field should not be used according to specificationThis field should not be used according to specificationThis field should not be used according to specificationThis field should not be used according to specificationThis field should not be used according to specificationThis field should not be used according to specification3.8 beta 43.8 beta 43.8 beta 43.8 beta 43.8 beta 43.8 beta 43.8 beta 43.8 beta 43.8 beta 43.8 beta 43.8 beta 43.8 beta 4POI 3.8 beta 4.POI 3.8 beta 4.POI 3.8 beta 5.POI 3.8 beta 5.Use the method with correct "embedded"Use the method with correct "embedded"usegetAllEmbeddedParts
insteadin 3.17-beta2, useFileMagic.valueOf(InputStream)
== FileMagic.OOXML insteaduseultimateType
insteaduseevaluateFormulaCell(cell)
insteadPOI 3.15 beta 3. Will be deleted when we make the CellType enum transition. See bug 59791.POI 3.15 beta 3.useappendFormat(StringBuilder out, String rawSheetName)
insteaduseappendFormat(StringBuilder out, String workbookName, String rawSheetName)
insteadusegetBorderBottom
insteadusegetBorderDiagonal
insteadusegetBorderHorizontal
insteadusegetBorderLeft
insteadusegetBorderRight
insteadusegetBorderTop
insteadusegetBorderVertical
insteadusegetAlignment()
insteadusegetBorderBottom()
insteadusegetBorderLeft()
insteadusegetBorderRight()
insteadusegetBorderTop()
insteadusegetFillPattern()
insteadusegetFontIndexAsInt()
insteadusegetVerticalAlignment()
insteadPOI 3.15 beta 3. Used to transition code fromint
s toCellType
s.POI 3.15 beta 3usegetCellType
insteadusegetIndexAsInt()
insteaduseevaluateFormulaCell(cell)
usegetFontAt(int)
4.0.0. New projects should avoid accessing named ranges by index.3.18. New projects should avoid accessing named ranges by index. UseWorkbook.getName(String)
instead.usegetNumberOfFontsAsInt()
instead3.18. New projects should useWorkbook.removeName(Name)
.3.18. New projects should useWorkbook.removeName(Name)
.use XSSFWorkbookFactory.createsince 4.0, use try-with-resources, will be removed in 4.2since 4.0, use try-with-resources, will be removed in 4.2since 4.0, use try-with-resources, will be removed in 4.2since 4.0, use try-with-resources, will be removed in 4.2since 4.0, use try-with-resources, will be removed in 4.2since 4.0, use try-with-resources, will be removed in 4.2usegetItemAt
insteadusegetItemAt
insteadusegetItemAt
insteadusegetItemAt
insteadusegetCellAddresses
insteaduseaddSharedStringItem(RichTextString string)
insteadusegetItemAt(int idx)
insteadusegetSharedStringItems
insteadusegetCachedFormulaResultType
insteadusegetCellType
instead3.16. New projects should avoid accessing named ranges by index.3.16. New projects should avoid accessing named ranges by index. UseSXSSFWorkbook.getName(String)
instead.3.16. New projects should useSXSSFWorkbook.removeName(Name)
.3.16. New projects should useSXSSFWorkbook.removeName(Name)
.UseXSSFTableColumn.getId()
instead.usegetCachedFormulaResultType
instead Will be deleted when we make the CellType enum transition. See bug 59791.usegetCellType
insteaduseXDDFChart.getAxes()
insteadusegetType
insteadUseinvalid @link
{@link #createTable(AreaReference))
UseXSSFTable.getColumnCount()
instead.UseXSSFTableColumn.getXmlColumnPr()
instead.3.16. New projects should avoid accessing named ranges by index.3.16. New projects should avoid accessing named ranges by index. UseXSSFWorkbook.getName(String)
instead.3.16. New projects should useXSSFWorkbook.removeName(Name)
.3.16. New projects should useXSSFWorkbook.removeName(Name)
.useXWPFRun.getParent()
insteaduseinvalid reference
XWPFRun.getVerticalAlignment
4.0.0 due to lack of implementation.
-
Deprecated ConstructorsConstructorDescriptionUse
Word6Extractor(DirectoryNode)
insteadUseDocumentProperties(byte[],int,int)
insteadUseOldSectionTable(byte[],int,int)
insteadorg.apache.poi.hwpf.model.PicturesTable(HWPFDocument, byte[], byte[], FSPATable, EscherRecordHolder) as of 4.0.0, we want to have the indexed map, and all calling contexts have access to it.3.17 beta 1 - pass the workbook styles indexed color map, if any3.17 beta 1 - pass the workbook styles indexed color map, if any4.0.0 - use the factoryXSSFColor.from(CTColor, IndexedColorMap)
method instead to check for null CTColor instances. Make private eventually
-
Deprecated Enum Constants