Class SequenceAudioInputStream
- java.lang.Object
-
- java.io.InputStream
-
- javax.sound.sampled.AudioInputStream
-
- fr.paris.lutece.plugins.captcha.modules.jcaptcha.service.sound.SequenceAudioInputStream
-
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable
public class SequenceAudioInputStream extends javax.sound.sampled.AudioInputStream- Author:
- lutecer
-
-
Constructor Summary
Constructors Constructor Description SequenceAudioInputStream(javax.sound.sampled.AudioFormat audioFormat, java.util.Collection<javax.sound.sampled.AudioInputStream> audioInputStreams)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intavailable()longgetFrameLength()intread()intread(byte[] abData, int nOffset, int nLength)-
Methods inherited from class javax.sound.sampled.AudioInputStream
close, getFormat, mark, markSupported, read, reset, skip
-
-
-
-
Method Detail
-
getFrameLength
public long getFrameLength()
- Overrides:
getFrameLengthin classjavax.sound.sampled.AudioInputStream- Returns:
- frame length
-
read
public int read() throws java.io.IOException- Overrides:
readin classjavax.sound.sampled.AudioInputStream- Returns:
- the byte read
- Throws:
java.io.IOException- the IOException
-
read
public int read(byte[] abData, int nOffset, int nLength) throws java.io.IOException- Overrides:
readin classjavax.sound.sampled.AudioInputStream- Parameters:
abData- the datanOffset- the offsetnLength- the length- Returns:
- the bytes read
- Throws:
java.io.IOException- the IOException
-
available
public int available() throws java.io.IOException- Overrides:
availablein classjavax.sound.sampled.AudioInputStream- Returns:
- the current stream available
- Throws:
java.io.IOException- the IOException
-
-