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
-
Method Summary
Modifier and TypeMethodDescriptionint
void
close()
void
finish()
long
long
getSize()
getType()
boolean
int
read()
int
read
(byte[] b, int offset, int len) byte
readByte()
final void
readFully
(byte[] b) final void
readFully
(byte[] b, int off, int len) int
readInt()
long
readLong()
short
readString
(int len) int
long
int
long
skip
(long n) final long
skipBytes
(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:
read
in classInputStream
- Throws:
IOException
-
read
- Overrides:
read
in classInputStream
- Throws:
IOException
-
readFully
- Throws:
IOException
-
readFully
- Throws:
IOException
-
skipBytes
- Throws:
IOException
-
skip
- Overrides:
skip
in classInputStream
- Throws:
IOException
-
available
public int available()- Overrides:
available
in 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:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classInputStream
- Throws:
IOException
-