Class EmbeddedObject
java.lang.Object
com.independentsoft.office.spreadsheet.EmbeddedObject
The Class EmbeddedObject.
-
Constructor Summary
ConstructorsConstructorDescriptionInstantiates a new embedded object.EmbeddedObject(InternalXMLStreamReader reader)Instantiates a new embedded object. -
Method Summary
Modifier and TypeMethodDescriptionclone()byte[]Gets the buffer.Gets the data view aspect type.Gets the file name.Gets the input stream.getLink()Gets the link.Gets the prog id.intGets the shape id.Gets the update type.booleanChecks if is auto load.voidLoad.voidLoad.voidload(String fileName, InputStream inputStream)Load.voidsave(OutputStream outputStream)Save.voidSave.voidSave.voidsetAutoLoad(boolean autoLoad)Sets the auto load.voidsetBuffer(byte[] buffer)Sets the buffer.voidsetDataViewAspectType(DataViewAspectType dataViewAspectType)Sets the data view aspect type.voidsetFileName(String fileName)Sets the file name.voidSets the link.voidSets the prog id.voidsetShapeID(int shapeID)Sets the shape id.voidsetUpdateType(OleUpdateType updateType)Sets the update type.toString()
-
Constructor Details
-
EmbeddedObject
public EmbeddedObject()Instantiates a new embedded object. -
EmbeddedObject
Instantiates a new embedded object.- Parameters:
reader- the reader- Throws:
XMLStreamException- the xML stream exception
-
-
Method Details
-
load
Load.- Parameters:
filePath- the file path- Throws:
IOException- Signals that an I/O exception has occurred.
-
load
Load.- Parameters:
fileName- the file nameinputStream- the input stream- Throws:
IOException- Signals that an I/O exception has occurred.
-
load
Load.- Parameters:
fileName- the file namebuffer- the buffer
-
save
Save.- Parameters:
filePath- the file path- Throws:
IOException- Signals that an I/O exception has occurred.
-
save
Save.- Parameters:
filePath- the file pathoverwrite- the overwrite- Throws:
IOException- Signals that an I/O exception has occurred.
-
save
Save.- Parameters:
outputStream- the output stream- Throws:
IOException- Signals that an I/O exception has occurred.
-
getInputStream
Gets the input stream.- Returns:
- the input stream
-
clone
-
toString
-
isAutoLoad
public boolean isAutoLoad()Checks if is auto load.- Returns:
- true, if is auto load
-
setAutoLoad
public void setAutoLoad(boolean autoLoad)Sets the auto load.- Parameters:
autoLoad- the new auto load
-
getDataViewAspectType
Gets the data view aspect type.- Returns:
- the data view aspect type
-
setDataViewAspectType
Sets the data view aspect type.- Parameters:
dataViewAspectType- the new data view aspect type
-
getLink
Gets the link.- Returns:
- the link
-
setLink
Sets the link.- Parameters:
link- the new link
-
getUpdateType
Gets the update type.- Returns:
- the update type
-
setUpdateType
Sets the update type.- Parameters:
updateType- the new update type
-
getProgID
Gets the prog id.- Returns:
- the prog id
-
setProgID
Sets the prog id.- Parameters:
progID- the new prog id
-
getShapeID
public int getShapeID()Gets the shape id.- Returns:
- the shape id
-
setShapeID
public void setShapeID(int shapeID)Sets the shape id.- Parameters:
shapeID- the new shape id
-
getFileName
Gets the file name.- Returns:
- the file name
-
setFileName
Sets the file name.- Parameters:
fileName- the new file name
-
getBuffer
public byte[] getBuffer()Gets the buffer.- Returns:
- the buffer
-
setBuffer
public void setBuffer(byte[] buffer)Sets the buffer.- Parameters:
buffer- the new buffer
-