Java Code Examples for com.sun.activation.registries.LogSupport

The following examples show how to use com.sun.activation.registries.LogSupport. These examples are extracted from open source projects. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
/**
 * Load from the named resource.
 */
private MimeTypeFile loadResource(String name) {
    InputStream clis = null;
    try {
        clis = SecuritySupport.getResourceAsStream(this.getClass(), name);
        if (clis != null) {
            MimeTypeFile mf = new MimeTypeFile(clis);
            if (LogSupport.isLoggable())
                LogSupport.log("MimetypesFileTypeMap: successfully " +
                    "loaded mime types file: " + name);
            return mf;
        } else {
            if (LogSupport.isLoggable())
                LogSupport.log("MimetypesFileTypeMap: not loading " +
                    "mime types file: " + name);
        }
    } catch (IOException e) {
        if (LogSupport.isLoggable())
            LogSupport.log("MimetypesFileTypeMap: can't load " + name, e);
    } catch (SecurityException sex) {
        if (LogSupport.isLoggable())
            LogSupport.log("MimetypesFileTypeMap: can't load " + name, sex);
    } finally {
        try {
            if (clis != null)
                clis.close();
        } catch (IOException ex) { }        // ignore it
    }
    return null;
}
 
Example 2
/**
 * Load from the named resource.
 */
private MailcapFile loadResource(String name) {
    InputStream clis = null;
    try {
        clis = SecuritySupport.getResourceAsStream(this.getClass(), name);
        if (clis != null) {
            MailcapFile mf = new MailcapFile(clis);
            if (LogSupport.isLoggable())
                LogSupport.log("MailcapCommandMap: successfully loaded " +
                    "mailcap file: " + name);
            return mf;
        } else {
            if (LogSupport.isLoggable())
                LogSupport.log("MailcapCommandMap: not loading " +
                    "mailcap file: " + name);
        }
    } catch (IOException e) {
        if (LogSupport.isLoggable())
            LogSupport.log("MailcapCommandMap: can't load " + name, e);
    } catch (SecurityException sex) {
        if (LogSupport.isLoggable())
            LogSupport.log("MailcapCommandMap: can't load " + name, sex);
    } finally {
        try {
            if (clis != null)
                clis.close();
        } catch (IOException ex) { }        // ignore it
    }
    return null;
}
 
Example 3
/**
 * Constructor that allows the caller to specify the path
 * of a <i>mailcap</i> file.
 *
 * @param fileName The name of the <i>mailcap</i> file to open
 * @exception       IOException     if the file can't be accessed
 */
public MailcapCommandMap(String fileName) throws IOException {
    this();

    if (LogSupport.isLoggable())
        LogSupport.log("MailcapCommandMap: load PROG from " + fileName);
    if (DB[PROG] == null) {
        DB[PROG] = new MailcapFile(fileName);
    }
}
 
Example 4
/**
 * Constructor that allows the caller to specify an <i>InputStream</i>
 * containing a mailcap file.
 *
 * @param is        InputStream of the <i>mailcap</i> file to open
 */
public MailcapCommandMap(InputStream is) {
    this();

    LogSupport.log("MailcapCommandMap: load PROG");
    if (DB[PROG] == null) {
        try {
            DB[PROG] = new MailcapFile(is);
        } catch (IOException ex) {
            // XXX - should throw it
        }
    }
}
 
Example 5
/**
    * Load from the named resource.
    */
   private MimeTypeFile loadResource(String name) {
InputStream clis = null;
try {
    clis = SecuritySupport.getResourceAsStream(this.getClass(), name);
    if (clis != null) {
	MimeTypeFile mf = new MimeTypeFile(clis);
	if (LogSupport.isLoggable())
	    LogSupport.log("MimetypesFileTypeMap: successfully " +
		"loaded mime types file: " + name);
	return mf;
    } else {
	if (LogSupport.isLoggable())
	    LogSupport.log("MimetypesFileTypeMap: not loading " +
		"mime types file: " + name);
    }
} catch (IOException e) {
    if (LogSupport.isLoggable())
	LogSupport.log("MimetypesFileTypeMap: can't load " + name, e);
} catch (SecurityException sex) {
    if (LogSupport.isLoggable())
	LogSupport.log("MimetypesFileTypeMap: can't load " + name, sex);
} finally {
    try {
	if (clis != null)
	    clis.close();
    } catch (IOException ex) { }	// ignore it
}
return null;
   }
 
Example 6
Source Project: FairEmail   Source File: MailcapCommandMap.java    License: GNU General Public License v3.0 5 votes vote down vote up
/**
    * Load from the named resource.
    */
   private MailcapFile loadResource(String name) {
InputStream clis = null;
try {
    clis = SecuritySupport.getResourceAsStream(this.getClass(), name);
    if (clis != null) {
	MailcapFile mf = new MailcapFile(clis);
	if (LogSupport.isLoggable())
	    LogSupport.log("MailcapCommandMap: successfully loaded " +
		"mailcap file: " + name);
	return mf;
    } else {
	if (LogSupport.isLoggable())
	    LogSupport.log("MailcapCommandMap: not loading " +
		"mailcap file: " + name);
    }
} catch (IOException e) {
    if (LogSupport.isLoggable())
	LogSupport.log("MailcapCommandMap: can't load " + name, e);
} catch (SecurityException sex) {
    if (LogSupport.isLoggable())
	LogSupport.log("MailcapCommandMap: can't load " + name, sex);
} finally {
    try {
	if (clis != null)
	    clis.close();
    } catch (IOException ex) { }	// ignore it
}
return null;
   }
 
Example 7
Source Project: FairEmail   Source File: MailcapCommandMap.java    License: GNU General Public License v3.0 5 votes vote down vote up
/**
    * Constructor that allows the caller to specify the path
    * of a <i>mailcap</i> file.
    *
    * @param fileName The name of the <i>mailcap</i> file to open
    * @exception	IOException	if the file can't be accessed
    */
   public MailcapCommandMap(String fileName) throws IOException {
this();

if (LogSupport.isLoggable())
    LogSupport.log("MailcapCommandMap: load PROG from " + fileName);
if (DB[PROG] == null) {
    DB[PROG] = new MailcapFile(fileName);
}
   }
 
Example 8
Source Project: FairEmail   Source File: MailcapCommandMap.java    License: GNU General Public License v3.0 5 votes vote down vote up
/**
    * Constructor that allows the caller to specify an <i>InputStream</i>
    * containing a mailcap file.
    *
    * @param is	InputStream of the <i>mailcap</i> file to open
    */
   public MailcapCommandMap(InputStream is) {
this();

LogSupport.log("MailcapCommandMap: load PROG");
if (DB[PROG] == null) {
    try {
	DB[PROG] = new MailcapFile(is);
    } catch (IOException ex) {
	// XXX - should throw it
    }
}
   }
 
Example 9
Source Project: jdk8u60   Source File: MimetypesFileTypeMap.java    License: GNU General Public License v2.0 5 votes vote down vote up
/**
 * Load from the named resource.
 */
private MimeTypeFile loadResource(String name) {
    InputStream clis = null;
    try {
        clis = SecuritySupport.getResourceAsStream(this.getClass(), name);
        if (clis != null) {
            MimeTypeFile mf = new MimeTypeFile(clis);
            if (LogSupport.isLoggable())
                LogSupport.log("MimetypesFileTypeMap: successfully " +
                    "loaded mime types file: " + name);
            return mf;
        } else {
            if (LogSupport.isLoggable())
                LogSupport.log("MimetypesFileTypeMap: not loading " +
                    "mime types file: " + name);
        }
    } catch (IOException e) {
        if (LogSupport.isLoggable())
            LogSupport.log("MimetypesFileTypeMap: can't load " + name, e);
    } catch (SecurityException sex) {
        if (LogSupport.isLoggable())
            LogSupport.log("MimetypesFileTypeMap: can't load " + name, sex);
    } finally {
        try {
            if (clis != null)
                clis.close();
        } catch (IOException ex) { }        // ignore it
    }
    return null;
}
 
Example 10
Source Project: jdk8u60   Source File: MailcapCommandMap.java    License: GNU General Public License v2.0 5 votes vote down vote up
/**
 * Load from the named resource.
 */
private MailcapFile loadResource(String name) {
    InputStream clis = null;
    try {
        clis = SecuritySupport.getResourceAsStream(this.getClass(), name);
        if (clis != null) {
            MailcapFile mf = new MailcapFile(clis);
            if (LogSupport.isLoggable())
                LogSupport.log("MailcapCommandMap: successfully loaded " +
                    "mailcap file: " + name);
            return mf;
        } else {
            if (LogSupport.isLoggable())
                LogSupport.log("MailcapCommandMap: not loading " +
                    "mailcap file: " + name);
        }
    } catch (IOException e) {
        if (LogSupport.isLoggable())
            LogSupport.log("MailcapCommandMap: can't load " + name, e);
    } catch (SecurityException sex) {
        if (LogSupport.isLoggable())
            LogSupport.log("MailcapCommandMap: can't load " + name, sex);
    } finally {
        try {
            if (clis != null)
                clis.close();
        } catch (IOException ex) { }        // ignore it
    }
    return null;
}
 
Example 11
Source Project: jdk8u60   Source File: MailcapCommandMap.java    License: GNU General Public License v2.0 5 votes vote down vote up
/**
 * Constructor that allows the caller to specify the path
 * of a <i>mailcap</i> file.
 *
 * @param fileName The name of the <i>mailcap</i> file to open
 * @exception       IOException     if the file can't be accessed
 */
public MailcapCommandMap(String fileName) throws IOException {
    this();

    if (LogSupport.isLoggable())
        LogSupport.log("MailcapCommandMap: load PROG from " + fileName);
    if (DB[PROG] == null) {
        DB[PROG] = new MailcapFile(fileName);
    }
}
 
Example 12
Source Project: jdk8u60   Source File: MailcapCommandMap.java    License: GNU General Public License v2.0 5 votes vote down vote up
/**
 * Constructor that allows the caller to specify an <i>InputStream</i>
 * containing a mailcap file.
 *
 * @param is        InputStream of the <i>mailcap</i> file to open
 */
public MailcapCommandMap(InputStream is) {
    this();

    LogSupport.log("MailcapCommandMap: load PROG");
    if (DB[PROG] == null) {
        try {
            DB[PROG] = new MailcapFile(is);
        } catch (IOException ex) {
            // XXX - should throw it
        }
    }
}
 
Example 13
/**
 * Load from the named resource.
 */
private MimeTypeFile loadResource(String name) {
    InputStream clis = null;
    try {
        clis = SecuritySupport.getResourceAsStream(this.getClass(), name);
        if (clis != null) {
            MimeTypeFile mf = new MimeTypeFile(clis);
            if (LogSupport.isLoggable())
                LogSupport.log("MimetypesFileTypeMap: successfully " +
                    "loaded mime types file: " + name);
            return mf;
        } else {
            if (LogSupport.isLoggable())
                LogSupport.log("MimetypesFileTypeMap: not loading " +
                    "mime types file: " + name);
        }
    } catch (IOException e) {
        if (LogSupport.isLoggable())
            LogSupport.log("MimetypesFileTypeMap: can't load " + name, e);
    } catch (SecurityException sex) {
        if (LogSupport.isLoggable())
            LogSupport.log("MimetypesFileTypeMap: can't load " + name, sex);
    } finally {
        try {
            if (clis != null)
                clis.close();
        } catch (IOException ex) { }        // ignore it
    }
    return null;
}
 
Example 14
/**
 * Load from the named resource.
 */
private MailcapFile loadResource(String name) {
    InputStream clis = null;
    try {
        clis = SecuritySupport.getResourceAsStream(this.getClass(), name);
        if (clis != null) {
            MailcapFile mf = new MailcapFile(clis);
            if (LogSupport.isLoggable())
                LogSupport.log("MailcapCommandMap: successfully loaded " +
                    "mailcap file: " + name);
            return mf;
        } else {
            if (LogSupport.isLoggable())
                LogSupport.log("MailcapCommandMap: not loading " +
                    "mailcap file: " + name);
        }
    } catch (IOException e) {
        if (LogSupport.isLoggable())
            LogSupport.log("MailcapCommandMap: can't load " + name, e);
    } catch (SecurityException sex) {
        if (LogSupport.isLoggable())
            LogSupport.log("MailcapCommandMap: can't load " + name, sex);
    } finally {
        try {
            if (clis != null)
                clis.close();
        } catch (IOException ex) { }        // ignore it
    }
    return null;
}
 
Example 15
/**
 * Constructor that allows the caller to specify the path
 * of a <i>mailcap</i> file.
 *
 * @param fileName The name of the <i>mailcap</i> file to open
 * @exception       IOException     if the file can't be accessed
 */
public MailcapCommandMap(String fileName) throws IOException {
    this();

    if (LogSupport.isLoggable())
        LogSupport.log("MailcapCommandMap: load PROG from " + fileName);
    if (DB[PROG] == null) {
        DB[PROG] = new MailcapFile(fileName);
    }
}
 
Example 16
/**
 * Constructor that allows the caller to specify an <i>InputStream</i>
 * containing a mailcap file.
 *
 * @param is        InputStream of the <i>mailcap</i> file to open
 */
public MailcapCommandMap(InputStream is) {
    this();

    LogSupport.log("MailcapCommandMap: load PROG");
    if (DB[PROG] == null) {
        try {
            DB[PROG] = new MailcapFile(is);
        } catch (IOException ex) {
            // XXX - should throw it
        }
    }
}
 
Example 17
/**
 * Load from the named resource.
 */
private MimeTypeFile loadResource(String name) {
    InputStream clis = null;
    try {
        clis = SecuritySupport.getResourceAsStream(this.getClass(), name);
        if (clis != null) {
            MimeTypeFile mf = new MimeTypeFile(clis);
            if (LogSupport.isLoggable())
                LogSupport.log("MimetypesFileTypeMap: successfully " +
                    "loaded mime types file: " + name);
            return mf;
        } else {
            if (LogSupport.isLoggable())
                LogSupport.log("MimetypesFileTypeMap: not loading " +
                    "mime types file: " + name);
        }
    } catch (IOException e) {
        if (LogSupport.isLoggable())
            LogSupport.log("MimetypesFileTypeMap: can't load " + name, e);
    } catch (SecurityException sex) {
        if (LogSupport.isLoggable())
            LogSupport.log("MimetypesFileTypeMap: can't load " + name, sex);
    } finally {
        try {
            if (clis != null)
                clis.close();
        } catch (IOException ex) { }        // ignore it
    }
    return null;
}
 
Example 18
/**
 * Load from the named resource.
 */
private MailcapFile loadResource(String name) {
    InputStream clis = null;
    try {
        clis = SecuritySupport.getResourceAsStream(this.getClass(), name);
        if (clis != null) {
            MailcapFile mf = new MailcapFile(clis);
            if (LogSupport.isLoggable())
                LogSupport.log("MailcapCommandMap: successfully loaded " +
                    "mailcap file: " + name);
            return mf;
        } else {
            if (LogSupport.isLoggable())
                LogSupport.log("MailcapCommandMap: not loading " +
                    "mailcap file: " + name);
        }
    } catch (IOException e) {
        if (LogSupport.isLoggable())
            LogSupport.log("MailcapCommandMap: can't load " + name, e);
    } catch (SecurityException sex) {
        if (LogSupport.isLoggable())
            LogSupport.log("MailcapCommandMap: can't load " + name, sex);
    } finally {
        try {
            if (clis != null)
                clis.close();
        } catch (IOException ex) { }        // ignore it
    }
    return null;
}
 
Example 19
/**
 * Constructor that allows the caller to specify the path
 * of a <i>mailcap</i> file.
 *
 * @param fileName The name of the <i>mailcap</i> file to open
 * @exception       IOException     if the file can't be accessed
 */
public MailcapCommandMap(String fileName) throws IOException {
    this();

    if (LogSupport.isLoggable())
        LogSupport.log("MailcapCommandMap: load PROG from " + fileName);
    if (DB[PROG] == null) {
        DB[PROG] = new MailcapFile(fileName);
    }
}
 
Example 20
/**
 * Constructor that allows the caller to specify an <i>InputStream</i>
 * containing a mailcap file.
 *
 * @param is        InputStream of the <i>mailcap</i> file to open
 */
public MailcapCommandMap(InputStream is) {
    this();

    LogSupport.log("MailcapCommandMap: load PROG");
    if (DB[PROG] == null) {
        try {
            DB[PROG] = new MailcapFile(is);
        } catch (IOException ex) {
            // XXX - should throw it
        }
    }
}
 
Example 21
/**
 * Load from the named resource.
 */
private MimeTypeFile loadResource(String name) {
    InputStream clis = null;
    try {
        clis = SecuritySupport.getResourceAsStream(this.getClass(), name);
        if (clis != null) {
            MimeTypeFile mf = new MimeTypeFile(clis);
            if (LogSupport.isLoggable())
                LogSupport.log("MimetypesFileTypeMap: successfully " +
                    "loaded mime types file: " + name);
            return mf;
        } else {
            if (LogSupport.isLoggable())
                LogSupport.log("MimetypesFileTypeMap: not loading " +
                    "mime types file: " + name);
        }
    } catch (IOException e) {
        if (LogSupport.isLoggable())
            LogSupport.log("MimetypesFileTypeMap: can't load " + name, e);
    } catch (SecurityException sex) {
        if (LogSupport.isLoggable())
            LogSupport.log("MimetypesFileTypeMap: can't load " + name, sex);
    } finally {
        try {
            if (clis != null)
                clis.close();
        } catch (IOException ex) { }        // ignore it
    }
    return null;
}
 
Example 22
/**
 * Load from the named resource.
 */
private MailcapFile loadResource(String name) {
    InputStream clis = null;
    try {
        clis = SecuritySupport.getResourceAsStream(this.getClass(), name);
        if (clis != null) {
            MailcapFile mf = new MailcapFile(clis);
            if (LogSupport.isLoggable())
                LogSupport.log("MailcapCommandMap: successfully loaded " +
                    "mailcap file: " + name);
            return mf;
        } else {
            if (LogSupport.isLoggable())
                LogSupport.log("MailcapCommandMap: not loading " +
                    "mailcap file: " + name);
        }
    } catch (IOException e) {
        if (LogSupport.isLoggable())
            LogSupport.log("MailcapCommandMap: can't load " + name, e);
    } catch (SecurityException sex) {
        if (LogSupport.isLoggable())
            LogSupport.log("MailcapCommandMap: can't load " + name, sex);
    } finally {
        try {
            if (clis != null)
                clis.close();
        } catch (IOException ex) { }        // ignore it
    }
    return null;
}
 
Example 23
/**
 * Constructor that allows the caller to specify the path
 * of a <i>mailcap</i> file.
 *
 * @param fileName The name of the <i>mailcap</i> file to open
 * @exception       IOException     if the file can't be accessed
 */
public MailcapCommandMap(String fileName) throws IOException {
    this();

    if (LogSupport.isLoggable())
        LogSupport.log("MailcapCommandMap: load PROG from " + fileName);
    if (DB[PROG] == null) {
        DB[PROG] = new MailcapFile(fileName);
    }
}
 
Example 24
/**
 * Constructor that allows the caller to specify an <i>InputStream</i>
 * containing a mailcap file.
 *
 * @param is        InputStream of the <i>mailcap</i> file to open
 */
public MailcapCommandMap(InputStream is) {
    this();

    LogSupport.log("MailcapCommandMap: load PROG");
    if (DB[PROG] == null) {
        try {
            DB[PROG] = new MailcapFile(is);
        } catch (IOException ex) {
            // XXX - should throw it
        }
    }
}
 
Example 25
Source Project: hottub   Source File: MimetypesFileTypeMap.java    License: GNU General Public License v2.0 5 votes vote down vote up
/**
 * Load from the named resource.
 */
private MimeTypeFile loadResource(String name) {
    InputStream clis = null;
    try {
        clis = SecuritySupport.getResourceAsStream(this.getClass(), name);
        if (clis != null) {
            MimeTypeFile mf = new MimeTypeFile(clis);
            if (LogSupport.isLoggable())
                LogSupport.log("MimetypesFileTypeMap: successfully " +
                    "loaded mime types file: " + name);
            return mf;
        } else {
            if (LogSupport.isLoggable())
                LogSupport.log("MimetypesFileTypeMap: not loading " +
                    "mime types file: " + name);
        }
    } catch (IOException e) {
        if (LogSupport.isLoggable())
            LogSupport.log("MimetypesFileTypeMap: can't load " + name, e);
    } catch (SecurityException sex) {
        if (LogSupport.isLoggable())
            LogSupport.log("MimetypesFileTypeMap: can't load " + name, sex);
    } finally {
        try {
            if (clis != null)
                clis.close();
        } catch (IOException ex) { }        // ignore it
    }
    return null;
}
 
Example 26
Source Project: hottub   Source File: MailcapCommandMap.java    License: GNU General Public License v2.0 5 votes vote down vote up
/**
 * Load from the named resource.
 */
private MailcapFile loadResource(String name) {
    InputStream clis = null;
    try {
        clis = SecuritySupport.getResourceAsStream(this.getClass(), name);
        if (clis != null) {
            MailcapFile mf = new MailcapFile(clis);
            if (LogSupport.isLoggable())
                LogSupport.log("MailcapCommandMap: successfully loaded " +
                    "mailcap file: " + name);
            return mf;
        } else {
            if (LogSupport.isLoggable())
                LogSupport.log("MailcapCommandMap: not loading " +
                    "mailcap file: " + name);
        }
    } catch (IOException e) {
        if (LogSupport.isLoggable())
            LogSupport.log("MailcapCommandMap: can't load " + name, e);
    } catch (SecurityException sex) {
        if (LogSupport.isLoggable())
            LogSupport.log("MailcapCommandMap: can't load " + name, sex);
    } finally {
        try {
            if (clis != null)
                clis.close();
        } catch (IOException ex) { }        // ignore it
    }
    return null;
}
 
Example 27
Source Project: hottub   Source File: MailcapCommandMap.java    License: GNU General Public License v2.0 5 votes vote down vote up
/**
 * Constructor that allows the caller to specify the path
 * of a <i>mailcap</i> file.
 *
 * @param fileName The name of the <i>mailcap</i> file to open
 * @exception       IOException     if the file can't be accessed
 */
public MailcapCommandMap(String fileName) throws IOException {
    this();

    if (LogSupport.isLoggable())
        LogSupport.log("MailcapCommandMap: load PROG from " + fileName);
    if (DB[PROG] == null) {
        DB[PROG] = new MailcapFile(fileName);
    }
}
 
Example 28
Source Project: hottub   Source File: MailcapCommandMap.java    License: GNU General Public License v2.0 5 votes vote down vote up
/**
 * Constructor that allows the caller to specify an <i>InputStream</i>
 * containing a mailcap file.
 *
 * @param is        InputStream of the <i>mailcap</i> file to open
 */
public MailcapCommandMap(InputStream is) {
    this();

    LogSupport.log("MailcapCommandMap: load PROG");
    if (DB[PROG] == null) {
        try {
            DB[PROG] = new MailcapFile(is);
        } catch (IOException ex) {
            // XXX - should throw it
        }
    }
}
 
Example 29
/**
 * Load from the named resource.
 */
private MimeTypeFile loadResource(String name) {
    InputStream clis = null;
    try {
        clis = SecuritySupport.getResourceAsStream(this.getClass(), name);
        if (clis != null) {
            MimeTypeFile mf = new MimeTypeFile(clis);
            if (LogSupport.isLoggable())
                LogSupport.log("MimetypesFileTypeMap: successfully " +
                    "loaded mime types file: " + name);
            return mf;
        } else {
            if (LogSupport.isLoggable())
                LogSupport.log("MimetypesFileTypeMap: not loading " +
                    "mime types file: " + name);
        }
    } catch (IOException e) {
        if (LogSupport.isLoggable())
            LogSupport.log("MimetypesFileTypeMap: can't load " + name, e);
    } catch (SecurityException sex) {
        if (LogSupport.isLoggable())
            LogSupport.log("MimetypesFileTypeMap: can't load " + name, sex);
    } finally {
        try {
            if (clis != null)
                clis.close();
        } catch (IOException ex) { }        // ignore it
    }
    return null;
}
 
Example 30
/**
 * Load from the named resource.
 */
private MailcapFile loadResource(String name) {
    InputStream clis = null;
    try {
        clis = SecuritySupport.getResourceAsStream(this.getClass(), name);
        if (clis != null) {
            MailcapFile mf = new MailcapFile(clis);
            if (LogSupport.isLoggable())
                LogSupport.log("MailcapCommandMap: successfully loaded " +
                    "mailcap file: " + name);
            return mf;
        } else {
            if (LogSupport.isLoggable())
                LogSupport.log("MailcapCommandMap: not loading " +
                    "mailcap file: " + name);
        }
    } catch (IOException e) {
        if (LogSupport.isLoggable())
            LogSupport.log("MailcapCommandMap: can't load " + name, e);
    } catch (SecurityException sex) {
        if (LogSupport.isLoggable())
            LogSupport.log("MailcapCommandMap: can't load " + name, sex);
    } finally {
        try {
            if (clis != null)
                clis.close();
        } catch (IOException ex) { }        // ignore it
    }
    return null;
}