public interface Sound extends Annotation
BORDERSTYLE_BEVELED, BORDERSTYLE_CLOUD, BORDERSTYLE_DASHED, BORDERSTYLE_INSETS, BORDERSTYLE_SOLID, BORDERSTYLE_UNDERLINE, FLAGS_HIDDEN, FLAGS_INVISIBLE, FLAGS_LOCKED, FLAGS_LOCKEDCONTENTS, 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.
|
Date |
getCreationDate()
Returns the date and time when the annotation was created.
|
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, getAnnotationComponent, getBorderStyle, getBorderWidth, getCheckmarkStatus, getColor, getComponent, getContents, getCreator, getFlags, getIRTAnnotation, getModifiedDate, getName, getOpacity, getPageIndex, getRectangle, getReviewHistory, getSubject, getSubtype, getTriggerActions, isHidden, isInvisible, isIRTGroup, isLocked, isLockedContents, isNoRotate, isNoView, isNoZoom, isPrintable, isReadOnly, paint, print, revalidate, setActions, setBorderStyle, setBorderWidth, setColor, setComponent, setComponentVisible, setCreator, setFlags, setHidden, setInvisible, setLayer, setLocked, setLockedContents, setModifiedDate, setName, setNoRotate, setNoView, setNoZoom, setOpacity, setPrintable, setReadOnly, setRectangle, setSubject, setTriggerActions, shiftRectangle
void setAudio(AudioInputStream audioStream) throws IOException
audioStream
- Stream containing the sound content.IOException
byte[] getContent()
AudioFormat getFormat()
void setContent(byte[] content, AudioFormat format)
content
- A byte array containing the sound contentformat
- the audio formatDate getCreationDate()