本文整理了Java中org.apache.openejb.loader.IO.readProperties()
方法的一些代码示例,展示了IO.readProperties()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。IO.readProperties()
方法的具体详情如下:
包路径:org.apache.openejb.loader.IO
类名称:IO
方法名:readProperties
[英]Reads and closes the input stream
[中]读取并关闭输入流
代码示例来源:origin: org.apache.tomee/openejb-server
private Properties loadProperties(final URL resource) throws IOException {
return IO.readProperties(resource);
}
代码示例来源:origin: org.apache.openejb/openejb-core
private static Properties asProperies(final URL resource) {
final Properties properties = new Properties();
try {
IO.readProperties(resource, properties);
} catch (final Throwable e) {
//Ignore
}
return properties;
}
代码示例来源:origin: org.apache.tomee/openejb-core
private static Properties asProperies(final URL resource) {
final Properties properties = new Properties();
try {
IO.readProperties(resource, properties);
} catch (final Throwable e) {
//Ignore
}
return properties;
}
代码示例来源:origin: org.apache.openejb/openejb-loader
public static Properties readProperties(final File resource) throws IOException {
return readProperties(resource, new Properties());
}
代码示例来源:origin: org.apache.openejb/openejb-loader
public static Properties readProperties(final URL resource) throws IOException {
return readProperties(resource, new Properties());
}
代码示例来源:origin: org.apache.tomee/openejb-server
private static Properties loadVersionProperties() throws IOException {
return IO.readProperties(new URL("resource:/openejb-version.properties"));
}
}
代码示例来源:origin: org.apache.tomee/openejb-loader
public static Properties readProperties(final File resource) throws IOException {
return readProperties(resource, new Properties());
}
代码示例来源:origin: org.apache.tomee/openejb-core
private static String getUrlPackagePrefixes(final InputStream in) {
try {
final Properties properties = IO.readProperties(in, new Properties());
return properties.getProperty(Context.URL_PKG_PREFIXES);
} catch (final IOException e) {
return null;
}
}
代码示例来源:origin: org.apache.openejb/openejb-core
private static String getUrlPackagePrefixes(final InputStream in) {
try {
final Properties properties = IO.readProperties(in, new Properties());
return properties.getProperty(Context.URL_PKG_PREFIXES);
} catch (final IOException e) {
return null;
}
}
代码示例来源:origin: org.apache.openejb/openejb-loader
public static Properties readProperties(final File resource, final Properties properties) throws IOException {
return readProperties(read(resource), properties);
}
代码示例来源:origin: org.apache.tomee/openejb-loader
public static Properties readProperties(final URL resource, final Properties properties) throws IOException {
return readProperties(read(resource), properties);
}
代码示例来源:origin: org.apache.openejb/openejb-loader
public static Properties readProperties(final URL resource, final Properties properties) throws IOException {
return readProperties(read(resource), properties);
}
代码示例来源:origin: org.apache.tomee/openejb-loader
public static Properties readProperties(final File resource, final Properties properties) throws IOException {
return readProperties(read(resource), properties);
}
代码示例来源:origin: org.apache.tomee/openejb-core
private static Properties loadLoggingProperties() {
try {
final File conf = SystemInstance.get().getConf(null);
final File file = new File(conf, "logging.properties");
return IO.readProperties(file);
} catch (final IOException e) {
return new Properties();
}
}
代码示例来源:origin: org.apache.openejb/openejb-core
private static Properties loadLoggingProperties() {
try {
final File conf = SystemInstance.get().getConf(null);
final File file = new File(conf, "logging.properties");
return IO.readProperties(file);
} catch (final IOException e) {
return new Properties();
}
}
代码示例来源:origin: com.tomitribe.tribestream/tribestream-container
private static Properties loadLoggingProperties() {
try {
final File conf = SystemInstance.get().getConf(null);
final File file = new File(conf, "logging.properties");
return IO.readProperties(file);
} catch (final IOException e) {
return new Properties();
}
}
代码示例来源:origin: org.apache.openejb/openejb-core
public Properties unmarshal(final String s) throws Exception {
return IO.readProperties(IO.read(s), new SuperProperties());
}
代码示例来源:origin: org.apache.tomee/openejb-core
public Properties unmarshal(final String s) throws Exception {
return IO.readProperties(IO.read(s), new SuperProperties());
}
代码示例来源:origin: org.apache.openejb/openejb-core
private static Properties asProperties(final String definition) throws IOException {
final SuperProperties properties = new SuperProperties();
properties.caseInsensitive(true);
properties.putAll(IO.readProperties(IO.read(definition), new Properties()));
return properties;
}
代码示例来源:origin: org.apache.tomee/openejb-core
private static Properties asProperties(final String definition) throws IOException {
final SuperProperties properties = new SuperProperties();
properties.caseInsensitive(true);
properties.putAll(IO.readProperties(IO.read(definition), new Properties()));
return properties;
}
内容来源于网络,如有侵权,请联系作者删除!