Package com.sun.media.sound
Class RIFFReader
java.lang.Object
java.io.InputStream
com.sun.media.sound.RIFFReader
- All Implemented Interfaces:
Closeable,AutoCloseable
Resource Interchange File Format (RIFF) stream decoder.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintvoidclose()voidfinish()longlonggetSize()getType()booleanintread()intread(byte[] b, int offset, int len) bytereadByte()final voidreadFully(byte[] b) final voidreadFully(byte[] b, int off, int len) intreadInt()longreadLong()shortreadString(int len) intlongintlongskip(long n) final longskipBytes(long n) Methods inherited from class java.io.InputStream
mark, markSupported, nullInputStream, read, readAllBytes, readNBytes, readNBytes, reset, skipNBytes, transferTo
-
Constructor Details
-
RIFFReader
- Throws:
IOException
-
-
Method Details
-
getFilePointer
- Throws:
IOException
-
hasNextChunk
- Throws:
IOException
-
nextChunk
- Throws:
IOException
-
getFormat
-
getType
-
getSize
public long getSize() -
read
- Specified by:
readin classInputStream- Throws:
IOException
-
read
- Overrides:
readin classInputStream- Throws:
IOException
-
readFully
- Throws:
IOException
-
readFully
- Throws:
IOException
-
skipBytes
- Throws:
IOException
-
skip
- Overrides:
skipin classInputStream- Throws:
IOException
-
available
public int available()- Overrides:
availablein classInputStream
-
finish
- Throws:
IOException
-
readString
- Throws:
IOException
-
readByte
- Throws:
IOException
-
readShort
- Throws:
IOException
-
readInt
- Throws:
IOException
-
readLong
- Throws:
IOException
-
readUnsignedByte
- Throws:
IOException
-
readUnsignedShort
- Throws:
IOException
-
readUnsignedInt
- Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classInputStream- Throws:
IOException
-