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:
Closeable,AutoCloseable
- Author:
- lutecer
-
Constructor Summary
ConstructorsConstructorDescriptionSequenceAudioInputStream(AudioFormat audioFormat, Collection<AudioInputStream> audioInputStreams) -
Method Summary
Methods inherited from class javax.sound.sampled.AudioInputStream
close, getFormat, mark, markSupported, read, reset, skipMethods inherited from class java.io.InputStream
nullInputStream, readAllBytes, readNBytes, readNBytes, skipNBytes, transferTo
-
Constructor Details
-
SequenceAudioInputStream
public SequenceAudioInputStream(AudioFormat audioFormat, Collection<AudioInputStream> audioInputStreams) - Parameters:
audioFormat- the audio FormataudioInputStreams- the audio InputStreams
-
-
Method Details
-
getFrameLength
public long getFrameLength()- Overrides:
getFrameLengthin classAudioInputStream- Returns:
- frame length
-
read
- Overrides:
readin classAudioInputStream- Returns:
- the byte read
- Throws:
IOException- the IOException
-
read
- Overrides:
readin classAudioInputStream- Parameters:
abData- the datanOffset- the offsetnLength- the length- Returns:
- the bytes read
- Throws:
IOException- the IOException
-
available
- Overrides:
availablein classAudioInputStream- Returns:
- the current stream available
- Throws:
IOException- the IOException
-