Package javazoom.jl.converter
Class Converter
java.lang.Object
javazoom.jl.converter.Converter
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
Nested ClassesModifier and TypeClassDescriptionstatic classImplementation ofProgressListenerthat writes notification text to aPrintWriter.static interfaceThis 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidconvert(InputStream sourceStream, String destName, Converter.ProgressListener progressListener, Decoder.Params decoderParams) voidvoidconvert(String sourceName, String destName, Converter.ProgressListener progressListener) voidconvert(String sourceName, String destName, Converter.ProgressListener progressListener, Decoder.Params decoderParams) protected intprotected InputStream
-
Constructor Details
-
Converter
public Converter()Creates a new converter instance.
-
-
Method Details
-
convert
- Throws:
JavaLayerException
-
convert
public void convert(String sourceName, String destName, Converter.ProgressListener progressListener) throws JavaLayerException - Throws:
JavaLayerException
-
convert
public void convert(String sourceName, String destName, Converter.ProgressListener progressListener, Decoder.Params decoderParams) throws JavaLayerException - Throws:
JavaLayerException
-
convert
public void convert(InputStream sourceStream, String destName, Converter.ProgressListener progressListener, Decoder.Params decoderParams) throws JavaLayerException - Throws:
JavaLayerException
-
countFrames
-
openInput
- Throws:
IOException
-