org.apache.openejb.loader.IO.readProperties()方法的使用及代码示例

x33g5p2x  于2022-01-21 转载在 其他  
字(4.7k)|赞(0)|评价(0)|浏览(174)

本文整理了Java中org.apache.openejb.loader.IO.readProperties()方法的一些代码示例,展示了IO.readProperties()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。IO.readProperties()方法的具体详情如下:
包路径:org.apache.openejb.loader.IO
类名称:IO
方法名:readProperties

IO.readProperties介绍

[英]Reads and closes the input stream
[中]读取并关闭输入流

代码示例

代码示例来源:origin: org.apache.tomee/openejb-server

  1. private Properties loadProperties(final URL resource) throws IOException {
  2. return IO.readProperties(resource);
  3. }

代码示例来源:origin: org.apache.openejb/openejb-core

  1. private static Properties asProperies(final URL resource) {
  2. final Properties properties = new Properties();
  3. try {
  4. IO.readProperties(resource, properties);
  5. } catch (final Throwable e) {
  6. //Ignore
  7. }
  8. return properties;
  9. }

代码示例来源:origin: org.apache.tomee/openejb-core

  1. private static Properties asProperies(final URL resource) {
  2. final Properties properties = new Properties();
  3. try {
  4. IO.readProperties(resource, properties);
  5. } catch (final Throwable e) {
  6. //Ignore
  7. }
  8. return properties;
  9. }

代码示例来源:origin: org.apache.openejb/openejb-loader

  1. public static Properties readProperties(final File resource) throws IOException {
  2. return readProperties(resource, new Properties());
  3. }

代码示例来源:origin: org.apache.openejb/openejb-loader

  1. public static Properties readProperties(final URL resource) throws IOException {
  2. return readProperties(resource, new Properties());
  3. }

代码示例来源:origin: org.apache.tomee/openejb-server

  1. private static Properties loadVersionProperties() throws IOException {
  2. return IO.readProperties(new URL("resource:/openejb-version.properties"));
  3. }
  4. }

代码示例来源:origin: org.apache.tomee/openejb-loader

  1. public static Properties readProperties(final File resource) throws IOException {
  2. return readProperties(resource, new Properties());
  3. }

代码示例来源:origin: org.apache.tomee/openejb-core

  1. private static String getUrlPackagePrefixes(final InputStream in) {
  2. try {
  3. final Properties properties = IO.readProperties(in, new Properties());
  4. return properties.getProperty(Context.URL_PKG_PREFIXES);
  5. } catch (final IOException e) {
  6. return null;
  7. }
  8. }

代码示例来源:origin: org.apache.openejb/openejb-core

  1. private static String getUrlPackagePrefixes(final InputStream in) {
  2. try {
  3. final Properties properties = IO.readProperties(in, new Properties());
  4. return properties.getProperty(Context.URL_PKG_PREFIXES);
  5. } catch (final IOException e) {
  6. return null;
  7. }
  8. }

代码示例来源:origin: org.apache.openejb/openejb-loader

  1. public static Properties readProperties(final File resource, final Properties properties) throws IOException {
  2. return readProperties(read(resource), properties);
  3. }

代码示例来源:origin: org.apache.tomee/openejb-loader

  1. public static Properties readProperties(final URL resource, final Properties properties) throws IOException {
  2. return readProperties(read(resource), properties);
  3. }

代码示例来源:origin: org.apache.openejb/openejb-loader

  1. public static Properties readProperties(final URL resource, final Properties properties) throws IOException {
  2. return readProperties(read(resource), properties);
  3. }

代码示例来源:origin: org.apache.tomee/openejb-loader

  1. public static Properties readProperties(final File resource, final Properties properties) throws IOException {
  2. return readProperties(read(resource), properties);
  3. }

代码示例来源:origin: org.apache.tomee/openejb-core

  1. private static Properties loadLoggingProperties() {
  2. try {
  3. final File conf = SystemInstance.get().getConf(null);
  4. final File file = new File(conf, "logging.properties");
  5. return IO.readProperties(file);
  6. } catch (final IOException e) {
  7. return new Properties();
  8. }
  9. }

代码示例来源:origin: org.apache.openejb/openejb-core

  1. private static Properties loadLoggingProperties() {
  2. try {
  3. final File conf = SystemInstance.get().getConf(null);
  4. final File file = new File(conf, "logging.properties");
  5. return IO.readProperties(file);
  6. } catch (final IOException e) {
  7. return new Properties();
  8. }
  9. }

代码示例来源:origin: com.tomitribe.tribestream/tribestream-container

  1. private static Properties loadLoggingProperties() {
  2. try {
  3. final File conf = SystemInstance.get().getConf(null);
  4. final File file = new File(conf, "logging.properties");
  5. return IO.readProperties(file);
  6. } catch (final IOException e) {
  7. return new Properties();
  8. }
  9. }

代码示例来源:origin: org.apache.openejb/openejb-core

  1. public Properties unmarshal(final String s) throws Exception {
  2. return IO.readProperties(IO.read(s), new SuperProperties());
  3. }

代码示例来源:origin: org.apache.tomee/openejb-core

  1. public Properties unmarshal(final String s) throws Exception {
  2. return IO.readProperties(IO.read(s), new SuperProperties());
  3. }

代码示例来源:origin: org.apache.openejb/openejb-core

  1. private static Properties asProperties(final String definition) throws IOException {
  2. final SuperProperties properties = new SuperProperties();
  3. properties.caseInsensitive(true);
  4. properties.putAll(IO.readProperties(IO.read(definition), new Properties()));
  5. return properties;
  6. }

代码示例来源:origin: org.apache.tomee/openejb-core

  1. private static Properties asProperties(final String definition) throws IOException {
  2. final SuperProperties properties = new SuperProperties();
  3. properties.caseInsensitive(true);
  4. properties.putAll(IO.readProperties(IO.read(definition), new Properties()));
  5. return properties;
  6. }

相关文章