|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.xiph.speex.AudioFileWriter
org.xiph.speex.RawWriter
public class RawWriter
Raw Audio File Writer.
Field Summary | |
---|---|
private java.io.OutputStream |
out
|
Constructor Summary | |
---|---|
RawWriter()
|
Method Summary | |
---|---|
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. |
Methods inherited from class org.xiph.speex.AudioFileWriter |
---|
buildOggPageHeader, buildSpeexComment, buildSpeexHeader, writeInt, writeInt, writeInt, writeLong, writeLong, writeOggPageHeader, writeShort, writeShort, writeShort, writeSpeexComment, writeSpeexHeader, writeString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private java.io.OutputStream out
Constructor Detail |
---|
public RawWriter()
Method Detail |
---|
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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |