javazoom.jl.converter

Class Converter

public class Converter extends Object

The Converter class implements the conversion of an MPEG audio file to a .WAV file. To convert an MPEG audio stream, just create an instance of this class and call the convert() method, passing in the names of the input and output files. You can pass in optional ProgressListener and Decoder.Params objects also to customize the conversion.

Since: 0.0.7

Nested Class Summary
static classConverter.PrintWriterProgressListener
Implementation of ProgressListener that writes notification text to a PrintWriter.
static interfaceConverter.ProgressListener
This interface is used by the Converter to provide notification of tasks being carried out by the converter, and to provide new information as it becomes available.
Constructor Summary
Converter()
Creates a new converter instance.
Method Summary
voidconvert(String sourceName, String destName)
voidconvert(String sourceName, String destName, Converter.ProgressListener progressListener)
voidconvert(String sourceName, String destName, Converter.ProgressListener progressListener, Decoder.Params decoderParams)
voidconvert(InputStream sourceStream, String destName, Converter.ProgressListener progressListener, Decoder.Params decoderParams)
protected intcountFrames(InputStream in)
protected InputStreamopenInput(String fileName)

Constructor Detail

Converter

public Converter()
Creates a new converter instance.

Method Detail

convert

public void convert(String sourceName, String destName)

convert

public void convert(String sourceName, String destName, Converter.ProgressListener progressListener)

convert

public void convert(String sourceName, String destName, Converter.ProgressListener progressListener, Decoder.Params decoderParams)

convert

public void convert(InputStream sourceStream, String destName, Converter.ProgressListener progressListener, Decoder.Params decoderParams)

countFrames

protected int countFrames(InputStream in)

openInput

protected InputStream openInput(String fileName)
JavaZOOM 1999-2005