org.jaudiotagger.audio.asf.io
Class FullRequestInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by java.io.FilterInputStream
          extended by org.jaudiotagger.audio.asf.io.FullRequestInputStream
All Implemented Interfaces:
java.io.Closeable

public class FullRequestInputStream
extends java.io.FilterInputStream

This implementation repeatedly reads from the wrapped input stream until the requested amount of bytes are read.

Author:
Christian Laireiter

Field Summary
 
Fields inherited from class java.io.FilterInputStream
in
 
Constructor Summary
FullRequestInputStream(java.io.InputStream source)
          Creates an instance.
 
Method Summary
 int read(byte[] buffer)
          
 int read(byte[] buffer, int off, int len)
          
 long skip(long amount)
          
 
Methods inherited from class java.io.FilterInputStream
available, close, mark, markSupported, read, reset
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FullRequestInputStream

public FullRequestInputStream(java.io.InputStream source)
Creates an instance.

Parameters:
source - stream to read from.
Method Detail

read

public int read(byte[] buffer)
         throws java.io.IOException

Overrides:
read in class java.io.FilterInputStream
Throws:
java.io.IOException

read

public int read(byte[] buffer,
                int off,
                int len)
         throws java.io.IOException

Overrides:
read in class java.io.FilterInputStream
Throws:
java.io.IOException

skip

public long skip(long amount)
          throws java.io.IOException

Overrides:
skip in class java.io.FilterInputStream
Throws:
java.io.IOException