javazoom.transfer.client.core
Class TriggeredInputStream

java.lang.Object
  extended byjava.io.InputStream
      extended byjava.io.FilterInputStream
          extended byjava.io.BufferedInputStream
              extended byjavazoom.transfer.client.core.TriggeredInputStream

public class TriggeredInputStream
extends java.io.BufferedInputStream

This class extends BufferedInputStream to provide events on data loading.


Field Summary
 
Fields inherited from class java.io.BufferedInputStream
buf, count, marklimit, markpos, pos
 
Fields inherited from class java.io.FilterInputStream
in
 
Constructor Summary
TriggeredInputStream(java.io.InputStream in, int size, java.util.List listeners)
           
TriggeredInputStream(java.io.InputStream in, java.util.List listeners)
           
 
Method Summary
 int read()
           
 int read(byte[] b, int offset, int length)
           
 long skip(long bytes)
          Skip bytes in the stream.
 
Methods inherited from class java.io.BufferedInputStream
available, close, mark, markSupported, reset
 
Methods inherited from class java.io.FilterInputStream
read
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TriggeredInputStream

public TriggeredInputStream(java.io.InputStream in,
                            java.util.List listeners)
Parameters:
in -

TriggeredInputStream

public TriggeredInputStream(java.io.InputStream in,
                            int size,
                            java.util.List listeners)
Parameters:
in -
size -
Method Detail

read

public int read(byte[] b,
                int offset,
                int length)
         throws java.io.IOException
Throws:
java.io.IOException

read

public int read()
         throws java.io.IOException
Throws:
java.io.IOException

skip

public long skip(long bytes)
          throws java.io.IOException
Skip bytes in the stream.

Throws:
java.io.IOException


Copyright © 1999-2005 JavaZOOM.