|
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.PLSExporter
public class PLSExporter
Exports data as a PLS playlist.
| Constructor Summary | |
|---|---|
PLSExporter()
Creates a new PLSExporter with the encoding set to iso-latin (ISO-8859-1). |
|
| Method Summary | |
|---|---|
String |
getBlock(int index,
Map blockdata)
Returns three lines making up one playlist entry. |
String |
getExtension()
Returns the file extension for this exporter's target file type. |
String |
getFooter(int numEntries)
Returns the the two-line footer for the playlist. |
String |
getHeader()
Returns the single line header for the playlist. |
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 PLSExporter()
| Method Detail |
|---|
public String getBlock(int index,
Map blockdata)
File[fIndex]=[filepath]
Title[fIndex]=[artist] - [title]
Length[fIndex]=[length]
getBlock in class AbstractExporterindex - the number of the record that is currently exported,
starting at 1blockdata - a map containing the record dataAbstractExporter.export(Object[] keys, Object[][] data)public String getHeader()
[playlist]
getHeader in class AbstractExporterpublic String getFooter(int numEntries)
getFooter in class AbstractExporternumEntries - the number of exported records
NumberOfEntries=[numEntries] Version=2
public 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, FILENAME,
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 | |||||||||