Package com.sun.media.sound
Class AudioFloatInputStream
java.lang.Object
com.sun.media.sound.AudioFloatInputStream
This class is used to create AudioFloatInputStream from AudioInputStream and
byte buffers.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract int
abstract void
close()
abstract AudioFormat
abstract long
static AudioFloatInputStream
getInputStream
(File file) static AudioFloatInputStream
getInputStream
(InputStream stream) static AudioFloatInputStream
getInputStream
(URL url) static AudioFloatInputStream
getInputStream
(AudioFormat format, byte[] buffer, int offset, int len) static AudioFloatInputStream
getInputStream
(AudioInputStream stream) abstract void
mark
(int readlimit) abstract boolean
final float
read()
final int
read
(float[] b) abstract int
read
(float[] b, int off, int len) abstract void
reset()
abstract long
skip
(long len)
-
Constructor Details
-
AudioFloatInputStream
public AudioFloatInputStream()
-
-
Method Details
-
getInputStream
public static AudioFloatInputStream getInputStream(URL url) throws UnsupportedAudioFileException, IOException -
getInputStream
public static AudioFloatInputStream getInputStream(File file) throws UnsupportedAudioFileException, IOException -
getInputStream
public static AudioFloatInputStream getInputStream(InputStream stream) throws UnsupportedAudioFileException, IOException -
getInputStream
-
getInputStream
public static AudioFloatInputStream getInputStream(AudioFormat format, byte[] buffer, int offset, int len) -
getFormat
-
getFrameLength
public abstract long getFrameLength() -
read
- Throws:
IOException
-
read
- Throws:
IOException
-
read
- Throws:
IOException
-
skip
- Throws:
IOException
-
available
- Throws:
IOException
-
close
- Throws:
IOException
-
mark
public abstract void mark(int readlimit) -
markSupported
public abstract boolean markSupported() -
reset
- Throws:
IOException
-