Class BackgroundImage
java.lang.Object
com.independentsoft.office.spreadsheet.BackgroundImage
The Class BackgroundImage.
-
Constructor Summary
ConstructorsConstructorDescriptionInstantiates a new background image.BackgroundImage(InternalXMLStreamReader reader)Instantiates a new background image.BackgroundImage(String filePath)Instantiates a new background image.BackgroundImage(String fileName, byte[] buffer)Instantiates a new background image.BackgroundImage(String fileName, InputStream inputStream)Instantiates a new background image. -
Method Summary
Modifier and TypeMethodDescriptionclone()byte[]Gets the buffer.Gets the file name.Gets the input stream.voidLoad.voidLoad.voidload(String fileName, InputStream inputStream)Load.voidsave(OutputStream outputStream)Save.voidSave.voidSave.voidsetBuffer(byte[] buffer)Sets the buffer.toString()
-
Constructor Details
-
BackgroundImage
public BackgroundImage()Instantiates a new background image. -
BackgroundImage
Instantiates a new background image.- Parameters:
reader- the reader- Throws:
XMLStreamException- the xML stream exception
-
BackgroundImage
Instantiates a new background image.- Parameters:
filePath- the file path- Throws:
IOException- Signals that an I/O exception has occurred.
-
BackgroundImage
Instantiates a new background image.- Parameters:
fileName- the file nameinputStream- the input stream- Throws:
IOException- Signals that an I/O exception has occurred.
-
BackgroundImage
Instantiates a new background image.- 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
-
clone
-
toString
-
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
-