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
ConstructorsConstructorDescriptionRIFFWriter(File file, String format) RIFFWriter(OutputStream stream, String format) RIFFWriter(String name, String format) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()longbooleanvoidseek(long pos) voidsetWriteOverride(boolean writeoverride) voidwrite(byte[] b, int off, int len) voidwrite(int b) voidwriteByte(int b) writeChunk(String format) voidwriteInt(int b) voidwriteLong(long b) voidwriteShort(short b) voidwriteString(String string) voidwriteString(String string, int len) voidwriteUnsignedByte(int b) voidwriteUnsignedInt(long b) voidwriteUnsignedShort(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:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classOutputStream- Throws:
IOException
-
write
- Specified by:
writein classOutputStream- Throws:
IOException
-
write
- Overrides:
writein 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
-