|
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.WinampXMLPlaylistExporter
public class WinampXMLPlaylistExporter
Exports data as a WinampXML playlist (.b4s).
| Constructor Summary | |
|---|---|
WinampXMLPlaylistExporter()
Creates a new WinampXMLPlaylistExporter. |
|
| Method Summary | |
|---|---|
static String |
escape(String s)
Escapes XML special characters and non-ascii characters in the specified string. |
String |
getBlock(int fileIndex,
Map blockdata)
Returns a single <entry> tag. |
String |
getExtension()
Returns the file extension for this exporter's target file type. |
String |
getFooter(int numEntries)
Returns the closing <WinampXML> doctag and the closing <playlist> tag. |
String |
getHeader()
Returns the xml declaration, the opening <WinampXML>
doctag and the opening <playlist> tag. |
String |
getName()
Returns a string description of this exporter's target file type. |
| 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, setKeys |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public WinampXMLPlaylistExporter()
| Method Detail |
|---|
public String getBlock(int fileIndex,
Map blockdata)
<entry> tag. The output looks as
follows:
<entry Playstring="[filepath]">
<Name>[artist] - [title]</Name>
<Length>[length in ms]</Length>
</entry>
getBlock in class AbstractExporterfileIndex - ignoredblockdata - a map containing the record dataAbstractExporter.export(Object[] keys, Object[][] data)public String getHeader()
<WinampXML>
doctag and the opening <playlist> tag. The output
looks as follows:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<WinampXML>
<playlist
num_entries="[number of datasets]"
label="Mp3dings Playlist">
getHeader in class AbstractExporterpublic String getFooter(int numEntries)
</playlist>
</WinampXML>
getFooter in class AbstractExporternumEntries - ignoredpublic String getName()
getName in interface ExportergetName in class AbstractExporterpublic String getExtension()
getExtension in class AbstractExporterpublic static String escape(String s)
|
Mp3dings 20100427 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||