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,AutoCloseable
The FilteredSoundStream class is a FilterInputStream that applies a SoundFilter to the underlying input stream.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionFilteredSoundStream(AudioInputStream in, SoundFilter soundFilter) Creates a new FilteredSoundStream object with the specified InputStream and SoundFilter. -
Method Summary
Modifier and TypeMethodDescriptionintread(byte[] samples, int offset, int length) Overrides the FilterInputStream method to apply this filter whenever bytes are readMethods inherited from class java.io.FilterInputStream
available, close, mark, markSupported, read, read, reset, skipMethods inherited from class java.io.InputStream
nullInputStream, readAllBytes, readNBytes, readNBytes, skipNBytes, transferTo
-
Constructor Details
-
FilteredSoundStream
Creates a new FilteredSoundStream object with the specified InputStream and SoundFilter.- Parameters:
in- the file sound streamsoundFilter- the sound filter
-
-
Method Details
-
read
Overrides the FilterInputStream method to apply this filter whenever bytes are read- Overrides:
readin classFilterInputStream- Parameters:
samples- the samplesoffset- the offsetlength- the length of sample- Returns:
- the byte read
- Throws:
IOException- the IOException
-