fr.paris.lutece.plugins.captcha.modules.jcaptcha.service.sound.filter
Class FilteredSoundStream
java.lang.Object
java.io.InputStream
java.io.FilterInputStream
fr.paris.lutece.plugins.captcha.modules.jcaptcha.service.sound.filter.FilteredSoundStream
- All Implemented Interfaces:
- Closeable
public class FilteredSoundStream
- extends FilterInputStream
The FilteredSoundStream class is a FilterInputStream that applies a
SoundFilter to the underlying input stream.
- See Also:
SoundFilter
Method Summary |
int |
read(byte[] samples,
int offset,
int length)
Overrides the FilterInputStream method to apply this filter whenever
bytes are read |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FilteredSoundStream
public FilteredSoundStream(AudioInputStream in,
SoundFilter soundFilter)
- Creates a new FilteredSoundStream object with the specified InputStream
and SoundFilter.
- Parameters:
in
- the file sound streamsoundFilter
- the sound filter
read
public int read(byte[] samples,
int offset,
int length)
throws IOException
- Overrides the FilterInputStream method to apply this filter whenever
bytes are read
- Overrides:
read
in class FilterInputStream
- Parameters:
samples
- the samplesoffset
- the offsetlength
- the length of sample
- Returns:
- the byte read
- Throws:
IOException
- the IOException
Copyright © 2014 Mairie de Paris. All Rights Reserved.