Mp3dings 
20100427

net.sourceforge.mp3dings.export
Interface Exporter

All Known Implementing Classes:
AbstractExporter, CSVExporter, DatabaseExporter, M3uExporter, PLSExporter, SansaPLAExporter, WinampXMLPlaylistExporter

public interface Exporter

Exports data from mp3dings.

Version:
$Revision: 13 $ ($Date: 2007-07-27 11:52:39 +0200 (Fr, 27 Jul 2007) $)
Author:
Moritz Ringler

Method Summary
 int export(Object[] keys, Object[][] data)
          Exports the data passed as the second argument.
 boolean getFileFallback()
          Returns whether the client should try to read data that is not found in the table directly from the mp3 file.
 Object[] getKeys()
          Get the keys to use when passing data to a specific implementation of this class
 String getName()
          Returns a string description of an exporter's target type.
 boolean setEncoding(String enc)
          Sets the charset that will be used to encode the strings for exporting.
 

Method Detail

export

int export(Object[] keys,
           Object[][] data)
           throws ExportException
Exports the data passed as the second argument.

Parameters:
data - data[i][j] is the value for keys[j] in the ith record
Returns:
the number of records that were successfully exported
Throws:
ExportException
See Also:
getKeys()

getKeys

Object[] getKeys()
Get the keys to use when passing data to a specific implementation of this class


setEncoding

boolean setEncoding(String enc)
Sets the charset that will be used to encode the strings for exporting.

Parameters:
enc - The name of the charset; may be either a canonical name or an alias

getFileFallback

boolean getFileFallback()
Returns whether the client should try to read data that is not found in the table directly from the mp3 file. Defaults to true.

Returns:
whether to read id3 tags as a fallback

getName

String getName()
Returns a string description of an exporter's target type.

Returns:
the name of an implementation's target type

Mp3dings 
20100427