Package com.independentsoft.office.vml
Class EmbeddedOleObject
java.lang.Object
com.independentsoft.office.vml.EmbeddedOleObject
- All Implemented Interfaces:
IContentElement,IVmlElement
The Class EmbeddedOleObject.
-
Constructor Summary
ConstructorsConstructorDescriptionInstantiates a new embedded ole object.EmbeddedOleObject(InternalXMLStreamReader reader)Instantiates a new embedded ole object.EmbeddedOleObject(String filePath)Instantiates a new embedded ole object.EmbeddedOleObject(String fileName, byte[] buffer)Instantiates a new embedded ole object.EmbeddedOleObject(String fileName, InputStream stream)Instantiates a new embedded ole object. -
Method Summary
Modifier and TypeMethodDescriptionclone()Gets the application.byte[]Gets the buffer.Gets the draw aspect.Gets the field switches.Gets the file name.Gets the input stream.Gets the link type.Gets the object id.Gets the shape id.getType()Gets the type.Gets the update mode.booleanisLocked()Checks if is locked.voidLoad.voidLoad.voidload(String fileName, InputStream inputStream)Load.voidsave(OutputStream outputStream)Save.voidSave.voidSave.voidsetApplication(String application)Sets the application.voidsetBuffer(byte[] buffer)Sets the buffer.voidsetDrawAspect(OleDrawAspect drawAspect)Sets the draw aspect.voidsetFieldSwitches(String fieldSwitches)Sets the field switches.voidsetLinkType(OleLinkType linkType)Sets the link type.voidsetLocked(boolean isLocked)Sets the locked.voidsetObjectID(String objectID)Sets the object id.voidsetShapeID(String shapeID)Sets the shape id.voidSets the type.voidsetUpdateMode(OleUpdateMode updateMode)Sets the update mode.toString()
-
Constructor Details
-
EmbeddedOleObject
public EmbeddedOleObject()Instantiates a new embedded ole object. -
EmbeddedOleObject
Instantiates a new embedded ole object.- Parameters:
filePath- the file path- Throws:
IOException- Signals that an I/O exception has occurred.
-
EmbeddedOleObject
Instantiates a new embedded ole object.- Parameters:
fileName- the file namestream- the stream- Throws:
IOException- Signals that an I/O exception has occurred.
-
EmbeddedOleObject
Instantiates a new embedded ole object.- Parameters:
fileName- the file namebuffer- the buffer
-
EmbeddedOleObject
Instantiates a new embedded ole 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
-
getContentElements
- Specified by:
getContentElementsin interfaceIContentElement
-
clone
- Specified by:
clonein interfaceIContentElement- Specified by:
clonein interfaceIVmlElement- Overrides:
clonein classObject
-
toString
-
getFieldSwitches
Gets the field switches.- Returns:
- the field switches
-
setFieldSwitches
Sets the field switches.- Parameters:
fieldSwitches- the new field switches
-
getLinkType
Gets the link type.- Returns:
- the link type
-
setLinkType
Sets the link type.- Parameters:
linkType- the new link type
-
isLocked
public boolean isLocked()Checks if is locked.- Returns:
- true, if is locked
-
setLocked
public void setLocked(boolean isLocked)Sets the locked.- Parameters:
isLocked- the new locked
-
getDrawAspect
Gets the draw aspect.- Returns:
- the draw aspect
-
setDrawAspect
Sets the draw aspect.- Parameters:
drawAspect- the new draw aspect
-
getObjectID
Gets the object id.- Returns:
- the object id
-
setObjectID
Sets the object id.- Parameters:
objectID- the new object id
-
getApplication
Gets the application.- Returns:
- the application
-
setApplication
Sets the application.- Parameters:
application- the new application
-
getShapeID
Gets the shape id.- Returns:
- the shape id
-
setShapeID
Sets the shape id.- Parameters:
shapeID- the new shape id
-
getType
Gets the type.- Returns:
- the type
-
setType
Sets the type.- Parameters:
type- the new type
-
getUpdateMode
Gets the update mode.- Returns:
- the update mode
-
setUpdateMode
Sets the update mode.- Parameters:
updateMode- the new update mode
-
getFileName
Gets the file name.- Returns:
- the 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
-