src/org/nutz/dao/util/DaoUp.java
public void init(InputStream in) throws IOException {
        Properties props = new Properties();
        try {
            props.load(in);
            init(props);
        }
        finally {
            Streams.safeClose(in);
        }
    }
public void init(InputStream in) throws IOException {
        Properties props = new Properties();
        try {
            props.load(in);
            init(props);
        }
        finally {
            Streams.safeClose(in);
        }
    }
public void init ( InputStream in ) throws IOException { Properties props = new Properties ( ) ; try { props . load ( in ) ; init ( props ) ; } finally { Streams . safeClose ( in ) ; } }
从一个流读取数据库配置
@param in 输入流,包含配置信息
@throws IOException 读取失败是抛出异常
从一个流读取数据库配置