public interface Sound extends Annotation
BORDERSTYLE_BEVELED, BORDERSTYLE_CLOUD, BORDERSTYLE_DASHED, BORDERSTYLE_INSETS, BORDERSTYLE_SOLID, BORDERSTYLE_UNDERLINE, FLAGS_HIDDEN, FLAGS_INVISIBLE, FLAGS_LOCKED, FLAGS_NOROTATE, FLAGS_NOVIEW, FLAGS_NOZOOM, FLAGS_PRINTABLE, FLAGS_READONLY
Modifier and Type | Method and Description |
---|---|
byte[] |
getContent()
Return this sound annotation's sound content as a byte array.
|
AudioFormat |
getFormat()
Return this annotation's audio format.
|
void |
setAudio(AudioInputStream audioStream)
Sets the audio content of this Sound annotation.
|
void |
setContent(byte[] content,
AudioFormat format)
Sets the audio content of this Sound annotation.
|
getActions, getBorderStyle, getBorderWidth, getCheckmarkStatus, getColor, getComponent, getContents, getCreator, getFlags, getModifiedDate, getName, getOpacity, getRectangle, getReviewHistory, getSubject, getSubtype, getTriggerActions, isHidden, isInvisible, isLocked, isNoRotate, isNoView, isNoZoom, isPrintable, isReadOnly, paint, print, revalidate, setActions, setBorderStyle, setBorderWidth, setColor, setComponent, setComponentVisible, setCreator, setFlags, setHidden, setInvisible, setLayer, setLocked, setModifiedDate, setName, setNoRotate, setNoView, setNoZoom, setOpacity, setPrintable, setReadOnly, setRectangle, setSubject, setSubtype, setTriggerActions, shiftRectangle
void setAudio(AudioInputStream audioStream) throws IOException
audioStream
- Stream containing the sound content.IOException
byte[] getContent()
PDFException
AudioFormat getFormat()
void setContent(byte[] content, AudioFormat format)
content
- A byte array containing the sound contentformat
- the audio formatIOException