public class ManagedAudioInputStream
extends javax.sound.sampled.AudioInputStream
| Modifier and Type | Class and Description |
|---|---|
static class |
ManagedAudioInputStream.NonManagedInputStream
class used for specifying the stream is non managed
|
| Constructor and Description |
|---|
ManagedAudioInputStream(java.io.File file,
javax.sound.sampled.AudioFormat format,
long frameLength)
Copy the file as a managed audio stream ...
|
ManagedAudioInputStream(ManagedAudioInputStream.NonManagedInputStream nmis)
Copy the stream in a temporary file for creating the managed stream
|
ManagedAudioInputStream(ManagedAudioInputStream mais) |
| Modifier and Type | Method and Description |
|---|---|
int |
available() |
void |
close() |
protected void |
finalize() |
protected java.io.File |
getFile() |
javax.sound.sampled.AudioFormat |
getFormat() |
long |
getFrameLength() |
protected void |
internalClose() |
void |
mark(int readlimit) |
boolean |
markSupported() |
int |
read() |
int |
read(byte[] b) |
int |
read(byte[] b,
int off,
int len) |
void |
reset() |
long |
skip(long n) |
public ManagedAudioInputStream(java.io.File file,
javax.sound.sampled.AudioFormat format,
long frameLength)
throws java.lang.Exception
java.lang.Exceptionpublic ManagedAudioInputStream(ManagedAudioInputStream.NonManagedInputStream nmis) throws java.lang.Exception
ais - java.lang.Exceptionpublic ManagedAudioInputStream(ManagedAudioInputStream mais) throws java.lang.Exception
java.lang.Exceptionprotected java.io.File getFile()
public int available()
throws java.io.IOException
available in class javax.sound.sampled.AudioInputStreamjava.io.IOExceptionprotected void internalClose()
throws java.io.IOException
java.io.IOExceptionpublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class javax.sound.sampled.AudioInputStreamjava.io.IOExceptionpublic javax.sound.sampled.AudioFormat getFormat()
getFormat in class javax.sound.sampled.AudioInputStreampublic long getFrameLength()
getFrameLength in class javax.sound.sampled.AudioInputStreampublic void mark(int readlimit)
mark in class javax.sound.sampled.AudioInputStreampublic boolean markSupported()
markSupported in class javax.sound.sampled.AudioInputStreampublic int read()
throws java.io.IOException
read in class javax.sound.sampled.AudioInputStreamjava.io.IOExceptionpublic int read(byte[] b,
int off,
int len)
throws java.io.IOException
read in class javax.sound.sampled.AudioInputStreamjava.io.IOExceptionpublic int read(byte[] b)
throws java.io.IOException
read in class javax.sound.sampled.AudioInputStreamjava.io.IOExceptionpublic void reset()
throws java.io.IOException
reset in class javax.sound.sampled.AudioInputStreamjava.io.IOExceptionpublic long skip(long n)
throws java.io.IOException
skip in class javax.sound.sampled.AudioInputStreamjava.io.IOExceptionprotected void finalize()
throws java.lang.Throwable
finalize in class java.lang.Objectjava.lang.Throwable