org.jaudiotagger.audio.asf.io
Class FullRequestInputStream
java.lang.Object
java.io.InputStream
java.io.FilterInputStream
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
Fields inherited from class java.io.FilterInputStream |
in |
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 |
FullRequestInputStream
public FullRequestInputStream(java.io.InputStream source)
- Creates an instance.
- Parameters:
source
- stream to read from.
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