|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.atunes.kernel.modules.cdripper.encoders.LameEncoder
public class LameEncoder
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 |
---|
public static final java.lang.String LAME
public static final java.lang.String QUALITY
public static final java.lang.String PRESET
public static final java.lang.String TITLE
public static final java.lang.String ARTIST
public static final java.lang.String ALBUM
public static final java.lang.String TRACK
public static final java.lang.String VERSION
Constructor Detail |
---|
public LameEncoder()
Method Detail |
---|
public static boolean testTool()
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
in interface Encoder
wavFile
- The filename and path of the wav file that should be encodedmp3File
- The name of the new file to be createdtitle
- The title of the song (only title, not artist and album)trackNumber
- The track number of the songartist
- the artistcomposer
- the composer
public java.lang.String getExtensionOfEncodedFiles()
getExtensionOfEncodedFiles
in interface Encoder
public void setAlbum(java.lang.String album)
Encoder
setAlbum
in interface Encoder
album
- the new albumpublic void setArtist(java.lang.String albumArtist)
Encoder
setArtist
in interface Encoder
albumArtist
- the new artistpublic void setGenre(java.lang.String genre)
Encoder
setGenre
in interface Encoder
genre
- the new genrepublic void setListener(EncoderProgressListener listener)
Encoder
setListener
in interface Encoder
listener
- the new listenerpublic void setQuality(java.lang.String quality)
Encoder
setQuality
in interface Encoder
quality
- the new qualitypublic void setYear(int year)
Encoder
setYear
in interface Encoder
year
- the new yearpublic void stop()
Encoder
stop
in interface Encoder
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |