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

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

public class Mp4Encoder
extends java.lang.Object
implements Encoder

The Class Mp4Encoder.


Field Summary
static java.lang.String ALBUM
          The Constant ALBUM.
static java.lang.String ARTIST
          The Constant ARTIST.
static java.lang.String OGGENC
          The Constant OGGENC.
static java.lang.String OUTPUT
          The Constant OUTPUT.
static java.lang.String QUALITY
          The Constant QUALITY.
static java.lang.String TITLE
          The Constant TITLE.
static java.lang.String VERSION
          The Constant VERSION.
static java.lang.String WRAP
          The Constant WRAP.
 
Constructor Summary
Mp4Encoder()
           
 
Method Summary
 boolean encode(java.io.File wavFile, java.io.File mp4File, 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 getAlbum()
          Gets the album.
 java.lang.String getAlbumArtist()
          Gets the album artist.
 java.lang.String getExtensionOfEncodedFiles()
          Gets the extension of encoded files.
 java.lang.String getGenre()
          Gets the genre.
 int getYear()
          Gets the year.
 void setAlbum(java.lang.String album)
          Sets the album.
 void setAlbumArtist(java.lang.String albumArtist)
          Sets the album artist.
 void setArtist(java.lang.String artist)
          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 ogg encoder oggenc.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

OGGENC

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

See Also:
Constant Field Values

OUTPUT

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

See Also:
Constant Field Values

WRAP

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

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

QUALITY

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

See Also:
Constant Field Values

VERSION

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

See Also:
Constant Field Values
Constructor Detail

Mp4Encoder

public Mp4Encoder()
Method Detail

testTool

public static boolean testTool()
Test the presence of the ogg encoder oggenc.

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

encode

public boolean encode(java.io.File wavFile,
                      java.io.File mp4File,
                      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
mp4File - 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.

getAlbum

public java.lang.String getAlbum()
Gets the album.

Returns:
the album

getAlbumArtist

public java.lang.String getAlbumArtist()
Gets the album artist.

Returns:
the albumArtist

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

getGenre

public java.lang.String getGenre()
Gets the genre.

Returns:
the genre

getYear

public int getYear()
Gets the year.

Returns:
the year

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

setAlbumArtist

public void setAlbumArtist(java.lang.String albumArtist)
Sets the album artist.

Parameters:
albumArtist - the albumArtist to set

setArtist

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

Specified by:
setArtist in interface Encoder
Parameters:
artist - 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.