Package ipsk.audio.io
Class ProgressMeasuringAudioInputStream
- java.lang.Object
-
- java.io.InputStream
-
- javax.sound.sampled.AudioInputStream
-
- ipsk.audio.io.ProgressMeasuringAudioInputStream
-
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
public class ProgressMeasuringAudioInputStream extends javax.sound.sampled.AudioInputStream
Provides a progress monitor for audio streams.- Author:
- K.Jaensch, klausj@phonetik.uni-muenchen.de
- See Also:
ProgressMonitor
-
-
Constructor Summary
Constructors Constructor Description ProgressMeasuringAudioInputStream(javax.sound.sampled.AudioInputStream srcAudioInputStream, java.awt.Component parentComponent, java.lang.Object message, java.lang.String note)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
available()
void
close()
javax.sound.sampled.AudioFormat
getFormat()
long
getFrameLength()
void
mark(int arg0)
boolean
markSupported()
int
read()
int
read(byte[] buf)
int
read(byte[] buf, int offset, int len)
void
reset()
long
skip(long n)
java.lang.String
toString()
-
-
-
Method Detail
-
available
public int available() throws java.io.IOException
- Overrides:
available
in classjavax.sound.sampled.AudioInputStream
- Throws:
java.io.IOException
-
close
public void close() throws java.io.IOException
- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfacejava.io.Closeable
- Overrides:
close
in classjavax.sound.sampled.AudioInputStream
- Throws:
java.io.IOException
-
getFormat
public javax.sound.sampled.AudioFormat getFormat()
- Overrides:
getFormat
in classjavax.sound.sampled.AudioInputStream
-
getFrameLength
public long getFrameLength()
- Overrides:
getFrameLength
in classjavax.sound.sampled.AudioInputStream
-
mark
public void mark(int arg0)
- Overrides:
mark
in classjavax.sound.sampled.AudioInputStream
-
markSupported
public boolean markSupported()
- Overrides:
markSupported
in classjavax.sound.sampled.AudioInputStream
-
read
public int read() throws java.io.IOException
- Overrides:
read
in classjavax.sound.sampled.AudioInputStream
- Throws:
java.io.IOException
-
read
public int read(byte[] buf) throws java.io.IOException
- Overrides:
read
in classjavax.sound.sampled.AudioInputStream
- Throws:
java.io.IOException
-
read
public int read(byte[] buf, int offset, int len) throws java.io.IOException
- Overrides:
read
in classjavax.sound.sampled.AudioInputStream
- Throws:
java.io.IOException
-
reset
public void reset() throws java.io.IOException
- Overrides:
reset
in classjavax.sound.sampled.AudioInputStream
- Throws:
java.io.IOException
-
skip
public long skip(long n) throws java.io.IOException
- Overrides:
skip
in classjavax.sound.sampled.AudioInputStream
- Throws:
java.io.IOException
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-