public class RawWriter extends AudioFileWriter
| Modifier and Type | Field and Description |
|---|---|
private java.io.OutputStream |
out |
| Constructor and Description |
|---|
RawWriter() |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the output file.
|
void |
open(java.io.File file)
Open the output file.
|
void |
open(java.lang.String filename)
Open the output file.
|
void |
writeHeader(java.lang.String comment)
Writes the header pages that start the Ogg Speex file.
|
void |
writePacket(byte[] data,
int offset,
int len)
Writes a packet of audio.
|
buildOggPageHeader, buildSpeexComment, buildSpeexHeader, writeInt, writeInt, writeInt, writeLong, writeLong, writeOggPageHeader, writeShort, writeShort, writeShort, writeSpeexComment, writeSpeexHeader, writeStringpublic void close()
throws java.io.IOException
close in class AudioFileWriterjava.io.IOException - if there was an exception closing the Audio Writer.public void open(java.io.File file)
throws java.io.IOException
open in class AudioFileWriterfile - - file to open.java.io.IOException - if there was an exception opening the Audio Writer.public void open(java.lang.String filename)
throws java.io.IOException
open in class AudioFileWriterfilename - - file to open.java.io.IOException - if there was an exception opening the Audio Writer.public void writeHeader(java.lang.String comment)
throws java.io.IOException
writeHeader in class AudioFileWritercomment - description to be included in the header.java.io.IOExceptionpublic void writePacket(byte[] data,
int offset,
int len)
throws java.io.IOException
writePacket in class AudioFileWriterdata - audio dataoffset - the offset from which to start reading the data.len - the length of data to read.java.io.IOExceptionCopyright © 1999-2004 Wimba S.A. All Rights Reserved.