|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.faceless.pdf2.PDFObject
org.faceless.pdf2.PDFStream
org.faceless.pdf2.PDFSound
A PDFSound represents an audio sample in a PDF document. Valid types of audio sample include:
.wav
file)Sound is unlikely to work in anything other than Adobes own Acrobat products on Windows and Macintosh platforms. Your mileage may vary.
Constructor Summary | |
PDFSound(InputStream in)
Create a new PDFSound from the specified input file. |
Method Summary | |
void |
close()
Close the sound object. |
Reader |
getMetaData()
Return any XML metadata associated with this object. |
int |
getRate()
Return the number of samples/second this sound is played at. |
InputStream |
getStream()
Return the sampled sound file encapsulated by this PDFSound object. |
String |
getType()
Return the type of sound file this sound represents. |
void |
setMetaData(String xmldata)
Set the XML metadata associated with this object. |
String |
toString()
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public PDFSound(InputStream in) throws IOException
IOException
- if the file format is invalidMethod Detail |
public int getRate()
public String getType()
public InputStream getStream()
public void setMetaData(String xmldata)
PDF.setMetaData(java.lang.String)
for more information.
xmldata
- the XML data to embed into the document, or null to clear any existing metadata. No validation is performed on this input.public Reader getMetaData() throws IOException
PDF.getMetaData()
for more information
Reader
containing the source of the XML or null if no metadata is available.
IOException
- if the metadata can't be extractedpublic String toString()
public void close()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |