|
|
@@ -31,18 +31,19 @@ import org.apache.poi.util.Beta; |
|
|
|
/** |
|
|
|
* An XSLFOleData instance holds the ole binary stream/object |
|
|
|
*/ |
|
|
|
@SuppressWarnings("unused") |
|
|
|
@Beta |
|
|
|
public final class XSLFObjectData extends POIXMLDocumentPart implements ObjectData { |
|
|
|
|
|
|
|
/** |
|
|
|
* Create a new XSLFOleData node |
|
|
|
* Create a new XSLFObjectData node |
|
|
|
*/ |
|
|
|
protected XSLFObjectData() { |
|
|
|
/* package */ XSLFObjectData() { |
|
|
|
super(); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* Construct XSLFOleData from a package part |
|
|
|
* Construct XSLFObjectData from a package part |
|
|
|
* |
|
|
|
* @param part the package part holding the ole data |
|
|
|
* |
|
|
@@ -58,14 +59,14 @@ public final class XSLFObjectData extends POIXMLDocumentPart implements ObjectDa |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
public OutputStream getOutputStream() throws IOException { |
|
|
|
public OutputStream getOutputStream() { |
|
|
|
final PackagePart pp = getPackagePart(); |
|
|
|
pp.clear(); |
|
|
|
return pp.getOutputStream(); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* *PictureData objects store the actual content in the part directly without keeping a |
|
|
|
* XSLFObjectData objects store the actual content in the part directly without keeping a |
|
|
|
* copy like all others therefore we need to handle them differently. |
|
|
|
*/ |
|
|
|
@Override |