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, writeString
public void close() throws java.io.IOException
close
in class AudioFileWriter
java.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 AudioFileWriter
file
- - 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 AudioFileWriter
filename
- - 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 AudioFileWriter
comment
- description to be included in the header.java.io.IOException
public void writePacket(byte[] data, int offset, int len) throws java.io.IOException
writePacket
in class AudioFileWriter
data
- audio dataoffset
- the offset from which to start reading the data.len
- the length of data to read.java.io.IOException
Copyright © 1999-2004 Wimba S.A. All Rights Reserved.