rasmus.util.riff
Class ChunkReader
java.lang.Object
java.io.InputStream
rasmus.util.riff.ChunkReader
- All Implemented Interfaces:
- java.io.Closeable
- Direct Known Subclasses:
- RiffReader
public class ChunkReader
- extends java.io.InputStream
Constructor Summary |
ChunkReader(java.io.InputStream stream)
|
Methods inherited from class java.io.InputStream |
close, mark, markSupported, read, reset |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ChunkReader
public ChunkReader(java.io.InputStream stream)
throws java.io.IOException
- Throws:
java.io.IOException
getSize
public long getSize()
hasNextChunk
public boolean hasNextChunk()
throws java.io.IOException
- Throws:
java.io.IOException
nextChunk
public RiffReader nextChunk()
throws java.io.IOException
- Throws:
java.io.IOException
read
public int read()
throws java.io.IOException
- Specified by:
read
in class java.io.InputStream
- Throws:
java.io.IOException
read
public int read(byte[] b)
throws java.io.IOException
- Overrides:
read
in class java.io.InputStream
- Throws:
java.io.IOException
skip
public long skip(long n)
throws java.io.IOException
- Overrides:
skip
in class java.io.InputStream
- Throws:
java.io.IOException
available
public int available()
- Overrides:
available
in class java.io.InputStream
finish
public void finish()
throws java.io.IOException
- Throws:
java.io.IOException