- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for props (0.14 sec)
-
src/main/java/org/codelibs/core/io/PropertiesUtil.java
* </p> * * @param props * プロパティセット。{@literal null}であってはいけません * @param in * 入力ストリーム。{@literal null}であってはいけません */ public static void load(final Properties props, final InputStream in) { assertArgumentNotNull("props", props); assertArgumentNotNull("in", in); try { props.load(in); } catch (final IOException e) {
Java - Registered: Fri May 03 20:58:11 GMT 2024 - Last Modified: Thu Mar 07 01:59:08 GMT 2024 - 8.9K bytes - Viewed (0) -
src/test/java/org/codelibs/core/lang/AnnotationUtilTest.java
final Annotation anno = m.getAnnotation(Hoge.class); final Map<String, Object> props = AnnotationUtil.getProperties(anno); assertThat((String) props.get("aaa"), is("123")); assertThat((String) props.get("bbb"), is("3")); assertThat(props.get("ccc"), is(nullValue())); }
Java - Registered: Fri May 03 20:58:11 GMT 2024 - Last Modified: Thu Mar 07 01:59:08 GMT 2024 - 1.5K bytes - Viewed (0) -
src/main/java/org/codelibs/core/io/ResourceUtil.java
*/ public static Properties getProperties(final String path) { assertArgumentNotEmpty("path", path); final Properties props = new Properties(); final InputStream is = getResourceAsStream(path); try { props.load(is); return props; } catch (final IOException ex) { throw new IORuntimeException(ex); } finally {
Java - Registered: Fri May 03 20:58:11 GMT 2024 - Last Modified: Thu Mar 07 01:59:08 GMT 2024 - 15.8K bytes - Viewed (0) -
src/test/java/org/codelibs/core/io/PropertiesUtilTest.java
* . */ @Test public void testLoadPropertiesInputStreamPropsNull() { exception.expect(NullArgumentException.class); exception.expectMessage(is("[ECL0008]argument[props] is null.")); final InputStream inputStream = ResourceUtil.getResourceAsStream("org/codelibs/core/io/test.properties"); PropertiesUtil.load(null, inputStream); } /** * Test method for
Java - Registered: Fri May 03 20:58:11 GMT 2024 - Last Modified: Thu Mar 07 01:59:08 GMT 2024 - 9.6K bytes - Viewed (0) -
src/main/java/org/codelibs/core/misc/DynamicProperties.java
final Properties prop = new Properties(); lastModified = propertiesFile.lastModified(); prop.load(inStream); properties = prop; } @Override public synchronized void load(final Reader reader) throws IOException { final Properties prop = new Properties(); lastModified = propertiesFile.lastModified(); prop.load(reader); properties = prop;
Java - Registered: Fri May 03 20:58:11 GMT 2024 - Last Modified: Thu Mar 07 01:59:08 GMT 2024 - 9.6K bytes - Viewed (0)