net.sourceforge.atunes.kernel.modules.cdripper.encoders
Class LameEncoder

java.lang.Object
  extended by net.sourceforge.atunes.kernel.modules.cdripper.encoders.LameEncoder
All Implemented Interfaces:
Encoder

public class LameEncoder
extends java.lang.Object
implements Encoder

The Class LameEncoder.


Field Summary
static java.lang.String ALBUM
          The Constant ALBUM.
static java.lang.String ARTIST
          The Constant ARTIST.
static java.lang.String LAME
          The Constant LAME.
static java.lang.String PRESET
          The Constant PRESET.
static java.lang.String QUALITY
          The Constant QUALITY.
static java.lang.String TITLE
          The Constant TITLE.
static java.lang.String TRACK
          The Constant TRACK.
static java.lang.String VERSION
          The Constant VERSION.
 
Constructor Summary
LameEncoder()
           
 
Method Summary
 boolean encode(java.io.File wavFile, java.io.File mp3File, java.lang.String title, int trackNumber, java.lang.String artist, java.lang.String composer)
          Encode the wav file and tags it using entagged.
 java.lang.String getExtensionOfEncodedFiles()
          Gets the extension of encoded files.
 void setAlbum(java.lang.String album)
          Sets the album.
 void setArtist(java.lang.String albumArtist)
          Sets the artist.
 void setGenre(java.lang.String genre)
          Sets the genre.
 void setListener(EncoderProgressListener listener)
          Sets the listener.
 void setQuality(java.lang.String quality)
          Sets the quality.
 void setYear(int year)
          Sets the year.
 void stop()
          Stop.
static boolean testTool()
          Test the presence of the mp3 encoder lame.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LAME

public static final java.lang.String LAME
The Constant LAME.

See Also:
Constant Field Values

QUALITY

public static final java.lang.String QUALITY
The Constant QUALITY.

See Also:
Constant Field Values

PRESET

public static final java.lang.String PRESET
The Constant PRESET.

See Also:
Constant Field Values

TITLE

public static final java.lang.String TITLE
The Constant TITLE.

See Also:
Constant Field Values

ARTIST

public static final java.lang.String ARTIST
The Constant ARTIST.

See Also:
Constant Field Values

ALBUM

public static final java.lang.String ALBUM
The Constant ALBUM.

See Also:
Constant Field Values

TRACK

public static final java.lang.String TRACK
The Constant TRACK.

See Also:
Constant Field Values

VERSION

public static final java.lang.String VERSION
The Constant VERSION.

See Also:
Constant Field Values
Constructor Detail

LameEncoder

public LameEncoder()
Method Detail

testTool

public static boolean testTool()
Test the presence of the mp3 encoder lame.

Returns:
Returns true if lame was found, false otherwise.

encode

public boolean encode(java.io.File wavFile,
                      java.io.File mp3File,
                      java.lang.String title,
                      int trackNumber,
                      java.lang.String artist,
                      java.lang.String composer)
Encode the wav file and tags it using entagged.

Specified by:
encode in interface Encoder
Parameters:
wavFile - The filename and path of the wav file that should be encoded
mp3File - The name of the new file to be created
title - The title of the song (only title, not artist and album)
trackNumber - The track number of the song
artist - the artist
composer - the composer
Returns:
Returns true if encoding was successfull, false otherwise.

getExtensionOfEncodedFiles

public java.lang.String getExtensionOfEncodedFiles()
Gets the extension of encoded files.

Specified by:
getExtensionOfEncodedFiles in interface Encoder
Returns:
Returns the extension of the encoded file

setAlbum

public void setAlbum(java.lang.String album)
Description copied from interface: Encoder
Sets the album.

Specified by:
setAlbum in interface Encoder
Parameters:
album - the new album

setArtist

public void setArtist(java.lang.String albumArtist)
Description copied from interface: Encoder
Sets the artist.

Specified by:
setArtist in interface Encoder
Parameters:
albumArtist - the new artist

setGenre

public void setGenre(java.lang.String genre)
Description copied from interface: Encoder
Sets the genre.

Specified by:
setGenre in interface Encoder
Parameters:
genre - the new genre

setListener

public void setListener(EncoderProgressListener listener)
Description copied from interface: Encoder
Sets the listener.

Specified by:
setListener in interface Encoder
Parameters:
listener - the new listener

setQuality

public void setQuality(java.lang.String quality)
Description copied from interface: Encoder
Sets the quality.

Specified by:
setQuality in interface Encoder
Parameters:
quality - the new quality

setYear

public void setYear(int year)
Description copied from interface: Encoder
Sets the year.

Specified by:
setYear in interface Encoder
Parameters:
year - the new year

stop

public void stop()
Description copied from interface: Encoder
Stop.

Specified by:
stop in interface Encoder


Copyright © 2006-2008 The aTunes Team. All Rights Reserved.