|
Mp3dings 20100427 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sourceforge.mp3dings.export.AbstractExporter
net.sourceforge.mp3dings.export.M3uExporter
public class M3uExporter
Exports data as an M3u playlist.
| Constructor Summary | |
|---|---|
M3uExporter()
Creates a new M3UExporter with the encoding set to iso-latin (ISO-8859-1). |
|
| Method Summary | |
|---|---|
String |
getBlock(int fileIndex,
Map blockdata)
Returns two lines making up one playlist entry. |
String |
getExtension()
Returns the file extension for this exporter's target file type. |
String |
getFooter(int numEntries)
Returns an empty string. |
String |
getHeader()
Returns the single line header. |
String |
getName()
Returns a string description of this exporter's target file type. |
void |
setKeys(Object[] headerKeys,
Object[] blockKeys,
Object[] footerKeys)
Overriden to do nothing. |
| Methods inherited from class net.sourceforge.mp3dings.export.AbstractExporter |
|---|
export, export, getBlockKeys, getFileFallback, getFileFilter, getFooterData, getFooterKeys, getHeaderData, getHeaderKeys, getImplementations, getKeys, getNumberOfEntries, setEncoding, setFileFallback, setFooterData, setHeaderData |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public M3uExporter()
| Method Detail |
|---|
public String getBlock(int fileIndex,
Map blockdata)
#EXTINF: [length],[artist] - [title]
[filepath]
getBlock in class AbstractExporterfileIndex - ignoredblockdata - a map containing the record dataAbstractExporter.export(Object[] keys, Object[][] data)public String getHeader()
#ExtM3U
getHeader in class AbstractExporterpublic String getFooter(int numEntries)
getFooter in class AbstractExporterpublic String getName()
getName in interface ExportergetName in class AbstractExporterpublic String getExtension()
getExtension in class AbstractExporter
public void setKeys(Object[] headerKeys,
Object[] blockKeys,
Object[] footerKeys)
ARTIST, TITLE, FULLPATH, and
LENGTH as blockKeys.
setKeys in class AbstractExporterheaderKeys - the fields for the headerblockKeys - the fields for the main sectionfooterKeys - the fields for the footerAbstractExporter.getKeys()
|
Mp3dings 20100427 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||