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

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

public class NeroAacEncoder
extends java.lang.Object
implements Encoder

The Class NeroAacEncoder.


Field Summary
static java.lang.String IGNORE_LENGTH
          The Constant IGNORE_LENGTH.
static java.lang.String INPUT
          The Constant INPUT.
static java.lang.String NERO_AAC
          The Constant NERO_AAC.
static java.lang.String OUTPUT
          The Constant OUTPUT.
static java.lang.String QUALITY
          The Constant QUALITY.
static java.lang.String VERSION
          The Constant VERSION.
 
Constructor Summary
NeroAacEncoder()
           
 
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 getExtensionOfEncodedFiles()
          Gets the extension of encoded files.
 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

NERO_AAC

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

See Also:
Constant Field Values

IGNORE_LENGTH

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

See Also:
Constant Field Values

INPUT

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

See Also:
Constant Field Values

OUTPUT

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

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

NeroAacEncoder

public NeroAacEncoder()
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.

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

setAlbumArtist

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

Parameters:
albumArtist - the new album artist

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.