net.sf.fmj.ejmf.toolkit.install
Class PackageUtility

java.lang.Object
  extended by net.sf.fmj.ejmf.toolkit.install.PackageUtility

public class PackageUtility
extends java.lang.Object

The PackageUtility class provides methods to register or remove package prefixes from the Java Media Framework's persistant lists of protocol and content prefix lists. From the book: Essential JMF, Gordon, Talley (ISBN 0130801046). Used with permission.

Author:
Steve Talley & Rob Gordon

Constructor Summary
PackageUtility()
           
 
Method Summary
static void addContentPrefix(java.lang.String prefix)
          Adds a content prefix to the JMF content prefix list.
static void addContentPrefix(java.lang.String prefix, boolean commit)
          Adds a content prefix to the JMF content prefix list.
static void addProtocolPrefix(java.lang.String prefix)
          Adds a protocol prefix to the JMF protocol prefix list.
static void addProtocolPrefix(java.lang.String prefix, boolean commit)
          Adds a protocol prefix to the JMF protocol prefix list.
static void removeContentPrefix(java.lang.String prefix)
          Removes a content prefix from the JMF content prefix list.
static void removeContentPrefix(java.lang.String prefix, boolean commit)
          Removes a content prefix from the JMF content prefix list.
static void removeProtocolPrefix(java.lang.String prefix)
          Removes a protocol prefix from the JMF protocol prefix list.
static void removeProtocolPrefix(java.lang.String prefix, boolean commit)
          Removes a protocol prefix from the JMF protocol prefix list.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PackageUtility

public PackageUtility()
Method Detail

addContentPrefix

public static void addContentPrefix(java.lang.String prefix)
Adds a content prefix to the JMF content prefix list. If the content prefix already exists in the list, no action is taken. The new content prefix list will only be valid during the current session.

Parameters:
prefix - the content prefix to add

addContentPrefix

public static void addContentPrefix(java.lang.String prefix,
                                    boolean commit)
Adds a content prefix to the JMF content prefix list. If the content prefix already exists in the list, no action is taken. If commit is true, the list will be commited and become persistent over future JMF sessions. Otherwise, the new content prefix list will only be valid during the current session.

Parameters:
prefix - the content prefix to add
commit - boolean indicating whether to make new content list persistent

addProtocolPrefix

public static void addProtocolPrefix(java.lang.String prefix)
Adds a protocol prefix to the JMF protocol prefix list. If the protocol prefix already exists in the list, no action is taken. The new protocol prefix list will only be valid during the current session.

Parameters:
prefix - the protocol prefix to add

addProtocolPrefix

public static void addProtocolPrefix(java.lang.String prefix,
                                     boolean commit)
Adds a protocol prefix to the JMF protocol prefix list. If the protocol prefix already exists in the list, no action is taken. If commit is true, the list will be commited and become persistent over future JMF sessions. Otherwise, the new protocol prefix list will only be valid during the current session.

Parameters:
prefix - the protocol prefix to add
commit - boolean indicating whether to make new protocol list persistent

removeProtocolPrefix

public static void removeProtocolPrefix(java.lang.String prefix)
Removes a protocol prefix from the JMF protocol prefix list. If the protocol prefix does not exist in the list, no action is taken. The new protocol prefix list will only be valid during the current session.

Parameters:
prefix - the protocol prefix to remove

removeProtocolPrefix

public static void removeProtocolPrefix(java.lang.String prefix,
                                        boolean commit)
Removes a protocol prefix from the JMF protocol prefix list. If the protocol prefix does not exist in the list, no action is taken. If commit is true, the list will be commited and become persistent over future JMF sessions. Otherwise, the new protocol prefix list will only be valid during the current session.

Parameters:
prefix - the protocol prefix to remove
commit - boolean indicating whether to make new protocol list persistent

removeContentPrefix

public static void removeContentPrefix(java.lang.String prefix)
Removes a content prefix from the JMF content prefix list. If the content prefix does not exist in the list, no action is taken. The new content prefix list will only be valid during the current session.

Parameters:
prefix - the content prefix to remove

removeContentPrefix

public static void removeContentPrefix(java.lang.String prefix,
                                       boolean commit)
Removes a content prefix from the JMF content prefix list. If the content prefix does not exist in the list, no action is taken. If commit is true, the list will be commited and become persistent over future JMF sessions. Otherwise, the new content prefix list will only be valid during the current session.

Parameters:
prefix - the content prefix to remove
commit - boolean indicating whether to make new content list persistent