jjdh API

dh.javax.sound.filter
Class FilteredSoundStream

java.lang.Object
  extended by java.io.InputStream
      extended by java.io.FilterInputStream
          extended by dh.javax.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

Field Summary
private static int REMAINING_SIZE_UNKNOWN
           
private  int remainingSize
           
private  SoundFilter soundFilter
           
 
Fields inherited from class java.io.FilterInputStream
in
 
Constructor Summary
FilteredSoundStream(InputStream in, SoundFilter soundFilter)
          Creates a new FilteredSoundStream object with the specified InputStream and 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.io.FilterInputStream
available, close, mark, markSupported, read, read, reset, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

REMAINING_SIZE_UNKNOWN

private static final int REMAINING_SIZE_UNKNOWN
See Also:
Constant Field Values

soundFilter

private SoundFilter soundFilter

remainingSize

private int remainingSize
Constructor Detail

FilteredSoundStream

public FilteredSoundStream(InputStream in,
                           SoundFilter soundFilter)
Creates a new FilteredSoundStream object with the specified InputStream and SoundFilter.

Method Detail

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
Throws:
IOException

jjdh API

Copyright © 2006 Jonas Jacobi and Dennis Heidsiek. All Rights Reserved.