javazoom.transfer.client.core
Class TriggeredInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by java.io.FilterInputStream
          extended by java.io.BufferedInputStream
              extended by javazoom.transfer.client.core.TriggeredInputStream
All Implemented Interfaces:
java.io.Closeable

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)
           
 
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
Overrides:
read in class java.io.BufferedInputStream
Throws:
java.io.IOException

read

public int read()
         throws java.io.IOException
Overrides:
read in class java.io.BufferedInputStream
Throws:
java.io.IOException

skip

public long skip(long bytes)
          throws java.io.IOException
Overrides:
skip in class java.io.BufferedInputStream
Throws:
java.io.IOException


Copyright © 1999-2006 JavaZOOM.