Package com.lightcrafts.media.jai.codecimpl.util

Source Code of com.lightcrafts.media.jai.codecimpl.util.JaiI18N

/*
* $RCSfile: JaiI18N.java,v $
*
* Copyright (c) 2005 Sun Microsystems, Inc. All rights reserved.
*
* Use is subject to license terms.
*
* $Revision: 1.1 $
* $Date: 2005/02/11 04:57:11 $
* $State: Exp $
*/
package com.lightcrafts.media.jai.codecimpl.util;

import com.lightcrafts.media.jai.codecimpl.util.PropertyUtil;
import java.text.MessageFormat;
import java.util.Locale;

class JaiI18N {
    static String packageName = "com.lightcrafts.media.jai.codecimpl.util";

    public static String getString(String key) {
        return PropertyUtil.getString(packageName, key);
    }

    public static String formatMsg(String key, Object[] args) {
        MessageFormat mf = new MessageFormat(getString(key));
        mf.setLocale(Locale.getDefault());

        return mf.format(args);
    }
}
TOP

Related Classes of com.lightcrafts.media.jai.codecimpl.util.JaiI18N

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.