fr.paris.lutece.plugins.captcha.modules.jcaptcha.service.sound
Class SequenceAudioInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by javax.sound.sampled.AudioInputStream
          extended by fr.paris.lutece.plugins.captcha.modules.jcaptcha.service.sound.SequenceAudioInputStream
All Implemented Interfaces:
Closeable

public class SequenceAudioInputStream
extends AudioInputStream

Author:
lutecer

Field Summary
 
Fields inherited from class javax.sound.sampled.AudioInputStream
format, frameLength, framePos, frameSize
 
Constructor Summary
SequenceAudioInputStream(AudioFormat audioFormat, Collection<AudioInputStream> audioInputStreams)
           
 
Method Summary
 int available()
           
 long getFrameLength()
           
 int read()
           
 int read(byte[] abData, int nOffset, int nLength)
           
 
Methods inherited from class javax.sound.sampled.AudioInputStream
close, getFormat, mark, markSupported, read, reset, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SequenceAudioInputStream

public SequenceAudioInputStream(AudioFormat audioFormat,
                                Collection<AudioInputStream> audioInputStreams)
Parameters:
audioFormat - the audio Format
audioInputStreams - the audio InputStreams
Method Detail

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 data
nOffset - the offset
nLength - 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 © 2014 Mairie de Paris. All Rights Reserved.