org.xiph.speex

Class RawWriter


public class RawWriter
extends AudioFileWriter

Raw Audio File Writer.
Version:
$Revision: 1.2 $
Author:
Marc Gimpel, Wimba S.A. (mgimpel@horizonwimba.com)

Field Summary

private OutputStream
out

Method Summary

void
close()
Closes the output file.
void
open(File file)
Open the output file.
void
open(String filename)
Open the output file.
void
writeHeader(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, close, open, open, writeHeader, writeInt, writeInt, writeInt, writeLong, writeLong, writeOggPageHeader, writePacket, writeShort, writeShort, writeShort, writeSpeexComment, writeSpeexHeader, writeString

Field Details

out

private OutputStream out

Method Details

close

public void close()
            throws IOException
Closes the output file.
Overrides:
close in interface AudioFileWriter

open

public void open(File file)
            throws IOException
Open the output file.
Overrides:
open in interface AudioFileWriter
Parameters:
file - - file to open.

open

public void open(String filename)
            throws IOException
Open the output file.
Overrides:
open in interface AudioFileWriter
Parameters:
filename - - file to open.

writeHeader

public void writeHeader(String comment)
            throws IOException
Writes the header pages that start the Ogg Speex file. Prepares file for data to be written.
Overrides:
writeHeader in interface AudioFileWriter
Parameters:
comment - description to be included in the header.

writePacket

public void writePacket(byte[] data,
                        int offset,
                        int len)
            throws IOException
Writes a packet of audio.
Overrides:
writePacket in interface AudioFileWriter
Parameters:
data - audio data
offset - the offset from which to start reading the data.
len - the length of data to read.

Copyright © 1999-2004 Wimba S.A. All Rights Reserved.