edu.cmu.sphinx.tools.audio
Class AudioDataInputStream
java.lang.Object
java.io.InputStream
edu.cmu.sphinx.tools.audio.AudioDataInputStream
- public class AudioDataInputStream
- extends java.io.InputStream
Converts an AudioData into an InputStream.
Methods inherited from class java.io.InputStream |
skip |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AudioDataInputStream
public AudioDataInputStream(AudioData audio)
- Creates a new AudioDataInputStream for the given AudioData.
- Parameters:
audio
- the AudioData to turn into an AudioDataInputStream
read
public int read()
throws java.io.IOException
- Throws:
java.io.IOException
read
public int read(byte[] buf)
throws java.io.IOException
- Throws:
java.io.IOException
read
public int read(byte[] buf,
int off,
int len)
throws java.io.IOException
- Throws:
java.io.IOException
skip
public long skip(int n)
throws java.io.IOException
- Throws:
java.io.IOException
available
public int available()
throws java.io.IOException
- Throws:
java.io.IOException
close
public void close()
throws java.io.IOException
- Throws:
java.io.IOException
mark
public void mark(int readLimit)
markSupported
public boolean markSupported()
reset
public void reset()
throws java.io.IOException
- Throws:
java.io.IOException