fr.paris.lutece.plugins.captcha.modules.jcaptcha.service.sound
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
public class SequenceAudioInputStream
- extends AudioInputStream
- Author:
- lutecer
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SequenceAudioInputStream
public SequenceAudioInputStream(AudioFormat audioFormat,
Collection<AudioInputStream> audioInputStreams)
- Parameters:
audioFormat - the audio FormataudioInputStreams - the audio InputStreams
getFrameLength
public long getFrameLength()
- Overrides:
getFrameLength in class AudioInputStream
- Returns:
- frame length
read
public int read()
throws IOException
- Overrides:
read in class AudioInputStream
- Returns:
- the byte read
- Throws:
IOException - the IOException
read
public int read(byte[] abData,
int nOffset,
int nLength)
throws IOException
- Overrides:
read in class AudioInputStream
- Parameters:
abData - the datanOffset - the offsetnLength - the length
- Returns:
- the bytes read
- Throws:
IOException - the IOException
available
public int available()
throws IOException
- Overrides:
available in class AudioInputStream
- Returns:
- the current stream available
- Throws:
IOException - the IOException
Copyright © 2013 Mairie de Paris. All Rights Reserved.