|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.tika.parser.mp3.AudioFrame
public class AudioFrame
An Audio Frame in an MP3 file. These come after the ID3v2 tags in the file. Currently, only the header is processed, not the raw audio data.
Constructor Summary | |
---|---|
AudioFrame(InputStream stream,
ContentHandler handler)
|
|
AudioFrame(int h1,
int h2,
int h3,
int h4,
InputStream in)
|
Method Summary | |
---|---|
int |
getChannels()
Get the number of channels (1=mono, 2=stereo) |
int |
getSampleRate()
Get the sampling rate, in Hz |
String |
getVersion()
|
static boolean |
isAudioHeader(int h1,
int h2,
int h3,
int h4)
Does this appear to be a 4 byte audio frame header? |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AudioFrame(InputStream stream, ContentHandler handler) throws IOException, SAXException, TikaException
IOException
SAXException
TikaException
public AudioFrame(int h1, int h2, int h3, int h4, InputStream in) throws IOException
IOException
Method Detail |
---|
public String getVersion()
public int getSampleRate()
public int getChannels()
public static boolean isAudioHeader(int h1, int h2, int h3, int h4)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |