FileDocCategorySizeDatePackage
PackageManager.javaAPI DocJMF 2.1.1e2681Mon May 12 12:20:38 BST 2003javax.media.pm

PackageManager

public final class PackageManager extends PackageManager

Fields Summary
private static Vector
protocolPrefixList
private static Vector
contentPrefixList
private static Registry
r
Constructors Summary
Methods Summary
public static synchronized voidcommitContentPrefixList()

	if (r != null) {
	    r.set("PM.contentPrefixList", contentPrefixList);
	    try {
		r.commit();
	    } catch (IOException ioe) {
		System.err.println("Could not commit contentPrefixList");
	    }
	}
    
public static synchronized voidcommitProtocolPrefixList()

	if (r != null) {
	    r.set("PM.protocolPrefixList", protocolPrefixList);
	    try {
		r.commit();
	    } catch (IOException ioe) {
		System.err.println("Could not commit protocolPrefixList");
	    }
	}
    
public static synchronized java.util.VectorgetContentPrefixList()
Content Prefix List

	return contentPrefixList;
    
public static synchronized java.util.VectorgetProtocolPrefixList()
Protocol Prefix List


     
	// Set Defaults
	protocolPrefixList = new Vector();	
	protocolPrefixList.addElement("javax");
	protocolPrefixList.addElement("com.sun");
	protocolPrefixList.addElement("com.ibm");
	
	contentPrefixList = new Vector();
	contentPrefixList.addElement("javax");
	contentPrefixList.addElement("com.sun");
	contentPrefixList.addElement("com.ibm");
	
	try {
	    r = new Registry();
	    Vector temp = (Vector) r.get("PM.protocolPrefixList");
	    if (temp != null)
		protocolPrefixList = temp;
	    temp = (Vector) r.get("PM.contentPrefixList");
	    if (temp != null)
		contentPrefixList = temp;
	} catch (Exception e) {
	    System.err.println("PackageManager: error reading registry");
	}
    
	return protocolPrefixList;
    
public static synchronized voidsetContentPrefixList(java.util.Vector list)

	contentPrefixList = list;
	if (!contentPrefixList.contains("javax"))
	    contentPrefixList.addElement("javax");
    
public static synchronized voidsetProtocolPrefixList(java.util.Vector list)

	protocolPrefixList = list;
	if (!protocolPrefixList.contains("javax"))
	    protocolPrefixList.addElement("javax");