com.wirefusion.player
Class ResourceInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by com.wirefusion.player.ResourceInputStream
All Implemented Interfaces:
java.io.Closeable

public class ResourceInputStream
extends java.io.InputStream

The InputStream of a WireFusion resource.


Method Summary
 int available()
           
 void close()
           
 boolean isBuffering()
          Returns true if the stream is currently buffering, otherwise false
 int read()
           
 void setBufferSize(int bufferSize)
          Sets the buffer size
 
Methods inherited from class java.io.InputStream
mark, markSupported, read, read, reset, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

available

public int available()
Overrides:
available in class java.io.InputStream

isBuffering

public boolean isBuffering()
Returns true if the stream is currently buffering, otherwise false

Returns:
returns true if the stream is buffering, otherwise false

setBufferSize

public void setBufferSize(int bufferSize)
Sets the buffer size

Parameters:
bufferSize - the buffer size, in bytes

close

public void close()
Specified by:
close in interface java.io.Closeable
Overrides:
close in class java.io.InputStream

read

public int read()
         throws java.io.IOException
Specified by:
read in class java.io.InputStream
Throws:
java.io.IOException