diff options
author | PJ Fanning <fanningpj@apache.org> | 2018-02-28 09:54:58 +0000 |
---|---|---|
committer | PJ Fanning <fanningpj@apache.org> | 2018-02-28 09:54:58 +0000 |
commit | 681d4d1684b2621a69a12e2f55d807d2f671ad1e (patch) | |
tree | b55475ed637ad74b110f8bab8499d70f55abd5c1 /src | |
parent | 24fee0c0d58d29584a26827113ae80bc692a60b8 (diff) | |
download | poi-681d4d1684b2621a69a12e2f55d807d2f671ad1e.tar.gz poi-681d4d1684b2621a69a12e2f55d807d2f671ad1e.zip |
remove XDDFChart workaround that saved workbook to temp file
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1825541 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src')
-rw-r--r-- | src/ooxml/java/org/apache/poi/xddf/usermodel/chart/XDDFChart.java | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/src/ooxml/java/org/apache/poi/xddf/usermodel/chart/XDDFChart.java b/src/ooxml/java/org/apache/poi/xddf/usermodel/chart/XDDFChart.java index b39419bfca..a5ab0548c8 100644 --- a/src/ooxml/java/org/apache/poi/xddf/usermodel/chart/XDDFChart.java +++ b/src/ooxml/java/org/apache/poi/xddf/usermodel/chart/XDDFChart.java @@ -21,8 +21,6 @@ package org.apache.poi.xddf.usermodel.chart; import static org.apache.poi.POIXMLTypeLoader.DEFAULT_XML_OPTIONS; -import java.io.File; -import java.io.FileOutputStream; import java.io.IOException; import java.io.OutputStream; import java.util.ArrayList; @@ -43,12 +41,10 @@ import org.apache.poi.openxml4j.exceptions.InvalidFormatException; import org.apache.poi.openxml4j.exceptions.NotOfficeXmlFileException; import org.apache.poi.openxml4j.opc.PackagePart; import org.apache.poi.openxml4j.opc.PackageRelationship; -import org.apache.poi.poifs.filesystem.POIFSFileSystem; import org.apache.poi.ss.util.CellRangeAddress; import org.apache.poi.ss.util.CellReference; import org.apache.poi.util.Beta; import org.apache.poi.util.Internal; -import org.apache.poi.util.TempFile; import org.apache.poi.xddf.usermodel.XDDFShapeProperties; import org.apache.poi.xssf.usermodel.XSSFCell; import org.apache.poi.xssf.usermodel.XSSFRow; @@ -693,19 +689,7 @@ public abstract class XDDFChart extends POIXMLDocumentPart { * @since POI 4.0.0 */ public void setWorkbook(XSSFWorkbook workbook) { - File file; - FileOutputStream fos; - try { - file = TempFile.createTempFile("TempEmbedded",".xlsx"); - fos = new FileOutputStream(file); - workbook.write(fos); - fos.close(); - this.workbook = new XSSFWorkbook(file); - } catch (IOException e) { - - } catch (InvalidFormatException e) { - - } + this.workbook = workbook; } /** |