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

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

public class WavEncoder
extends java.lang.Object
implements Encoder

The Class WavEncoder.


Constructor Summary
WavEncoder()
           
 
Method Summary
 boolean encode(java.io.File wavFile, java.io.File wavFile2, java.lang.String title, int trackNumber, java.lang.String artists, 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 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WavEncoder

public WavEncoder()
Method Detail

encode

public boolean encode(java.io.File wavFile,
                      java.io.File wavFile2,
                      java.lang.String title,
                      int trackNumber,
                      java.lang.String artists,
                      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
wavFile2 - 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
artists - the artists
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 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.