edu.cmu.sphinx.tools.audio
Class AudioDataInputStream

java.lang.Object
  extended byjava.io.InputStream
      extended byedu.cmu.sphinx.tools.audio.AudioDataInputStream

public class AudioDataInputStream
extends java.io.InputStream

Converts an AudioData into an InputStream.


Constructor Summary
AudioDataInputStream(AudioData audio)
          Creates a new AudioDataInputStream for the given AudioData.
 
Method Summary
 int available()
           
 void close()
           
 void mark(int readLimit)
           
 boolean markSupported()
           
 int read()
           
 int read(byte[] buf)
           
 int read(byte[] buf, int off, int len)
           
 void reset()
           
 long skip(int n)
           
 
Methods inherited from class java.io.InputStream
skip
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AudioDataInputStream

public AudioDataInputStream(AudioData audio)
Creates a new AudioDataInputStream for the given AudioData.

Parameters:
audio - the AudioData to turn into an AudioDataInputStream
Method Detail

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