Package org.apache.poi.xssf.usermodel
Class XSSFObjectData
- java.lang.Object
-
- org.apache.poi.xssf.usermodel.XSSFShape
-
- org.apache.poi.xssf.usermodel.XSSFSimpleShape
-
- org.apache.poi.xssf.usermodel.XSSFObjectData
-
- All Implemented Interfaces:
Iterable<XSSFTextParagraph>,ObjectData,Shape,SimpleShape,TextContainer
public class XSSFObjectData extends XSSFSimpleShape implements ObjectData
Represents binary object (i.e. OLE) data stored in the file. Eg. A GIF, JPEG etc...
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedXSSFObjectData(XSSFDrawing drawing, org.openxmlformats.schemas.drawingml.x2006.spreadsheetDrawing.CTShape ctShape)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetContentType()DirectoryEntrygetDirectory()StringgetFileName()The filename of the embedded imagebyte[]getObjectData()PackagePartgetObjectPart()StringgetOLE2ClassName()org.openxmlformats.schemas.spreadsheetml.x2006.main.CTOleObjectgetOleObject()XSSFPictureDatagetPictureData()protected XSSFSheetgetSheet()booleanhasDirectoryEntry()protected static org.openxmlformats.schemas.drawingml.x2006.spreadsheetDrawing.CTShapeprototype()Prototype with the default structure of a new auto-shape.-
Methods inherited from class org.apache.poi.xssf.usermodel.XSSFSimpleShape
addNewTextParagraph, addNewTextParagraph, addNewTextParagraph, clearText, findDefinedParagraphProperty, findDefinedRunProperty, getBottomInset, getCTShape, getLeftInset, getRightInset, getShapeId, getShapeName, getShapeProperties, getShapeType, getText, getTextAutofit, getTextBody, getTextDirection, getTextHorizontalOverflow, getTextParagraphs, getTextVerticalOverflow, getTopInset, getVerticalAlignment, getWordWrap, iterator, setBottomInset, setLeftInset, setRightInset, setShapeType, setText, setText, setTextAutofit, setTextDirection, setTextHorizontalOverflow, setTextVerticalOverflow, setTopInset, setVerticalAlignment, setWordWrap, setXfrm, spliterator
-
Methods inherited from class org.apache.poi.xssf.usermodel.XSSFShape
getAnchor, getDrawing, getParent, isNoFill, setFillColor, setLineStyle, setLineStyleColor, setLineWidth, setNoFill
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.poi.ss.usermodel.Shape
getAnchor, getParent, getShapeName, isNoFill, setFillColor, setLineStyleColor, setNoFill
-
Methods inherited from interface org.apache.poi.ss.usermodel.SimpleShape
getShapeId
-
-
-
-
Constructor Detail
-
XSSFObjectData
protected XSSFObjectData(XSSFDrawing drawing, org.openxmlformats.schemas.drawingml.x2006.spreadsheetDrawing.CTShape ctShape)
-
-
Method Detail
-
prototype
protected static org.openxmlformats.schemas.drawingml.x2006.spreadsheetDrawing.CTShape prototype()
Prototype with the default structure of a new auto-shape.
-
getOLE2ClassName
public String getOLE2ClassName()
- Specified by:
getOLE2ClassNamein interfaceObjectData
-
getOleObject
public org.openxmlformats.schemas.spreadsheetml.x2006.main.CTOleObject getOleObject()
- Returns:
- the CTOleObject associated with the shape
-
getObjectData
public byte[] getObjectData() throws IOException- Specified by:
getObjectDatain interfaceObjectData- Throws:
IOException
-
getObjectPart
public PackagePart getObjectPart()
- Returns:
- the package part of the object data
-
hasDirectoryEntry
public boolean hasDirectoryEntry()
- Specified by:
hasDirectoryEntryin interfaceObjectData
-
getDirectory
public DirectoryEntry getDirectory() throws IOException
- Specified by:
getDirectoryin interfaceObjectData- Throws:
IOException
-
getFileName
public String getFileName()
The filename of the embedded image- Specified by:
getFileNamein interfaceObjectData
-
getSheet
protected XSSFSheet getSheet()
-
getPictureData
public XSSFPictureData getPictureData()
- Specified by:
getPictureDatain interfaceObjectData
-
getContentType
public String getContentType()
- Specified by:
getContentTypein interfaceObjectData
-
-