Package org.apache.poi.hslf.usermodel
Class HSLFSoundData
java.lang.Object
org.apache.poi.hslf.usermodel.HSLFSoundData
A class that represents sound data embedded in a slide show.
- Author:
- Yegor Kozlov
-
Constructor Summary
ConstructorsConstructorDescriptionHSLFSoundData
(Sound container) Creates the object data wrapping the record that contains the sound data. -
Method Summary
Modifier and TypeMethodDescriptionstatic HSLFSoundData[]
Find all sound records in the supplied Document recordsbyte[]
getData()
Gets an input stream which returns the binary of the sound data.Name of the sound (e.g.Type of the sound (e.g.
-
Constructor Details
-
HSLFSoundData
Creates the object data wrapping the record that contains the sound data.- Parameters:
container
- the record that contains the sound data.
-
-
Method Details
-
getSoundName
Name of the sound (e.g. "crash")- Returns:
- name of the sound
-
getSoundType
Type of the sound (e.g. ".wav")- Returns:
- type of the sound
-
getData
public byte[] getData()Gets an input stream which returns the binary of the sound data.- Returns:
- the input stream which will contain the binary of the sound data.
-
find
Find all sound records in the supplied Document records- Parameters:
document
- the document to find in- Returns:
- the array with the sound data
-