Package com.alibaba.antx.util.collection

Examples of com.alibaba.antx.util.collection.ExtendedProperties


     * @param propsFile �����ļ�
     * @param propsCharset װ�������ļ�ʱʹ�õı����ַ���
     * @return �����ļ�������
     */
    public static Map loadPropertiesFile(InputStream istream, String propsCharset, String url, boolean closeOnExit) {
        ExtendedProperties props = new ExtendedProperties();

        try {
            props.load(istream, propsCharset, url);
        } catch (IOException e) {
            throw new ConfigException(e);
        } finally {
            if (istream != null) {
                try {
View Full Code Here


     * @param propsFile �����ļ�
     * @param propsCharset װ�������ļ�ʱʹ�õı����ַ���
     * @return �����ļ�������
     */
    public static Map loadPropertiesFile(File propsFile, String propsCharset) {
        ExtendedProperties props = new ExtendedProperties();

        if (propsFile.exists()) {
            try {
                props.load(propsFile.toURI().toURL(), propsCharset);
            } catch (IOException e) {
                throw new ConfigException(e);
            }
        }

View Full Code Here

     * @param propsFile    属性文件
     * @param propsCharset 装入属性文件时使用的编码字符集
     * @return 属性文件的内容
     */
    public static Map loadPropertiesFile(InputStream istream, String propsCharset, String url, boolean closeOnExit) {
        ExtendedProperties props = new ExtendedProperties();

        try {
            props.load(istream, propsCharset, url);
        } catch (IOException e) {
            throw new ConfigException(e);
        } finally {
            if (istream != null) {
                try {
View Full Code Here

     * @param propsFile    属性文件
     * @param propsCharset 装入属性文件时使用的编码字符集
     * @return 属性文件的内容
     */
    public static Map loadPropertiesFile(File propsFile, String propsCharset) {
        ExtendedProperties props = new ExtendedProperties();

        if (propsFile.exists()) {
            try {
                props.load(propsFile.toURI().toURL(), propsCharset);
            } catch (IOException e) {
                throw new ConfigException(e);
            }
        }

View Full Code Here

     * @param propsFile �����ļ�
     * @param propsCharset װ�������ļ�ʱʹ�õı����ַ���
     * @return �����ļ�������
     */
    public static Map loadPropertiesFile(InputStream istream, String propsCharset, String url, boolean closeOnExit) {
        ExtendedProperties props = new ExtendedProperties();

        try {
            props.load(istream, propsCharset, url);
        } catch (IOException e) {
            throw new ConfigException(e);
        } finally {
            if (istream != null) {
                try {
View Full Code Here

     * @param propsFile �����ļ�
     * @param propsCharset װ�������ļ�ʱʹ�õı����ַ���
     * @return �����ļ�������
     */
    public static Map loadPropertiesFile(File propsFile, String propsCharset) {
        ExtendedProperties props = new ExtendedProperties();

        if (propsFile.exists()) {
            try {
                props.load(propsFile.toURI().toURL(), propsCharset);
            } catch (IOException e) {
                throw new ConfigException(e);
            }
        }

View Full Code Here

TOP

Related Classes of com.alibaba.antx.util.collection.ExtendedProperties

Copyright © 2018 www.massapicom. 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.