Lizzy v1.1.1

christophedelory.lizzy
Class Transcode

java.lang.Object
  extended by christophedelory.lizzy.Transcode

public final class Transcode
extends Object

Converts a given playlist file to a specified format.

Since:
0.2.0
Version:
$Revision: 92 $
Author:
Christophe Delory

Method Summary
static void buildCurrentVersion(String resourceName)
          Initializes the current project version.
 String getSupportedProviderIds()
          Returns a string representation of all supported playlist providers, through their identifier.
static void main(String[] args)
          Converts an input playlist to the specified playlist format.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

buildCurrentVersion

public static void buildCurrentVersion(String resourceName)
                                throws Exception
Initializes the current project version.

Parameters:
resourceName - the name of the version resource; "package1/VERSION" for example. Shall not be null.
Throws:
SecurityException - if a security manager exists and its checkPermission method denies access to the class loader of this class.
NullPointerException - if resourceName is null.
NullPointerException - if the VERSION file could not be found or the invoker doesn't have adequate privileges to get the resource.
NullPointerException - if the VERSION file is empty.
IOException - if an I/O exception occurs.
IllegalArgumentException - if the version string is malformed.
IndexOutOfBoundsException - if one of the numbers is strictly negative.
NumberFormatException - if the version string contains a non-parsable integer.
Exception
See Also:
Version.CURRENT, Version.valueOf(java.lang.String)

main

public static void main(String[] args)
                 throws Exception
Converts an input playlist to the specified playlist format.
Usage:
 Transcode [options] <input-playlist>
 

Parameters:
args - the program arguments.
Throws:
MalformedURLException - if at least one of the input strings specifies an unknown protocol.
IOException - if an I/O exception occurs.
Exception

getSupportedProviderIds

public String getSupportedProviderIds()
Returns a string representation of all supported playlist providers, through their identifier.

Returns:
a string representing the list of all supported playlist providers. Shall not be null.
See Also:
SpecificPlaylistProvider.getId()

2008-2009 Christophe Delory

Copyright 2008-2009 Christophe Delory. All Rights Reserved.