Class OleObject
java.lang.Object
com.independentsoft.office.odf.drawing.FrameContentElement
com.independentsoft.office.odf.drawing.OleObject
- All Implemented Interfaces:
IContentElement
The Class OleObject.
-
Field Summary
Fields inherited from class com.independentsoft.office.odf.drawing.FrameContentElement
parent -
Constructor Summary
ConstructorsConstructorDescriptionInstantiates a new ole object.OleObject(InternalXMLStreamReader reader)Instantiates a new ole object.Instantiates a new ole object.Instantiates a new ole object.OleObject(String fileName, InputStream inputStream)Instantiates a new ole object. -
Method Summary
Modifier and TypeMethodDescriptionclone()Creates a new object that is a deep copy of the current instance.byte[]Gets the buffer.Returns all content elements.Gets the file name.Gets the filter name for an image.Gets the input stream.Returns the parent content element.voidLoad.voidLoad.voidload(String fileName, InputStream inputStream)Load.voidsave(OutputStream outputStream)Save.voidSave.voidSave.voidsetBuffer(byte[] buffer)Sets the buffer.voidsetFileName(String fileName)Sets the file name.voidSets the filter name for an image.voidsetParent(IContentElement parent)Sets the parent content element.toString()Converts the value of the current OleObject object to its equivalent string representation.
-
Constructor Details
-
OleObject
public OleObject()Instantiates a new ole object. -
OleObject
Instantiates a new ole object.- Parameters:
reader- the reader- Throws:
XMLStreamException- the xML stream exception
-
OleObject
Instantiates a new ole object.- Parameters:
filePath- the file path- Throws:
IOException- Signals that an I/O exception has occurred.
-
OleObject
Instantiates a new ole object.- Parameters:
fileName- the file nameinputStream- the input stream- Throws:
IOException- Signals that an I/O exception has occurred.
-
OleObject
Instantiates a new ole object.- Parameters:
fileName- the file namebuffer- the buffer
-
-
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
Returns all content elements.- Specified by:
getContentElementsin interfaceIContentElement- Specified by:
getContentElementsin classFrameContentElement- Returns:
- A collection of content elements.
-
getParent
Returns the parent content element.- Specified by:
getParentin interfaceIContentElement- Overrides:
getParentin classFrameContentElement- Returns:
- the parent
-
setParent
Sets the parent content element.- Specified by:
setParentin interfaceIContentElement- Overrides:
setParentin classFrameContentElement- Parameters:
parent- the new parent
-
clone
Creates a new object that is a deep copy of the current instance.- Specified by:
clonein interfaceIContentElement- Specified by:
clonein classFrameContentElement- Returns:
- A new object that is a copy of this instance.
-
toString
Converts the value of the current OleObject object to its equivalent string representation. -
getFilter
Gets the filter name for an image. This attribute contains the internal filter name that an consumer has used to load the graphic.- Returns:
- the filter
-
setFilter
Sets the filter name for an image. This attribute contains the internal filter name that an consumer has used to load the graphic.- Parameters:
filter- the new filter
-
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
-