Package com.sun.media.sound
Class RIFFWriter
java.lang.Object
java.io.OutputStream
com.sun.media.sound.RIFFWriter
- All Implemented Interfaces:
Closeable
,Flushable
,AutoCloseable
Resource Interchange File Format (RIFF) stream encoder.
-
Constructor Summary
ConstructorDescriptionRIFFWriter
(File file, String format) RIFFWriter
(OutputStream stream, String format) RIFFWriter
(String name, String format) -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
long
boolean
void
seek
(long pos) void
setWriteOverride
(boolean writeoverride) void
write
(byte[] b, int off, int len) void
write
(int b) void
writeByte
(int b) writeChunk
(String format) void
writeInt
(int b) void
writeLong
(long b) void
writeShort
(short b) void
writeString
(String string) void
writeString
(String string, int len) void
writeUnsignedByte
(int b) void
writeUnsignedInt
(long b) void
writeUnsignedShort
(int b) Methods inherited from class java.io.OutputStream
flush, nullOutputStream, write
-
Constructor Details
-
RIFFWriter
- Throws:
IOException
-
RIFFWriter
- Throws:
IOException
-
RIFFWriter
- Throws:
IOException
-
-
Method Details
-
seek
- Throws:
IOException
-
getFilePointer
- Throws:
IOException
-
setWriteOverride
public void setWriteOverride(boolean writeoverride) -
getWriteOverride
public boolean getWriteOverride() -
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classOutputStream
- Throws:
IOException
-
write
- Specified by:
write
in classOutputStream
- Throws:
IOException
-
write
- Overrides:
write
in classOutputStream
- Throws:
IOException
-
writeList
- Throws:
IOException
-
writeChunk
- Throws:
IOException
-
writeString
- Throws:
IOException
-
writeString
- Throws:
IOException
-
writeByte
- Throws:
IOException
-
writeShort
- Throws:
IOException
-
writeInt
- Throws:
IOException
-
writeLong
- Throws:
IOException
-
writeUnsignedByte
- Throws:
IOException
-
writeUnsignedShort
- Throws:
IOException
-
writeUnsignedInt
- Throws:
IOException
-