Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 59 for Watch (0.12 sec)

  1. src/main/java/org/codelibs/core/lang/ThreadUtil.java

            }
            try {
                Thread.sleep(millis);
            } catch (final InterruptedException e) {
                throw new InterruptedRuntimeException(e);
            }
        }
    
        public static void sleepQuietly(final long millis) {
            if (millis < 1L) {
                return;
            }
            try {
                Thread.sleep(millis);
            } catch (final InterruptedException e) {
                if (logger.isDebugEnabled()) {
    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)
  2. src/main/java/org/codelibs/core/lang/FieldUtil.java

            assertArgumentNotNull("field", field);
    
            try {
                field.set(target, value);
            } catch (final IllegalAccessException e) {
                throw new IllegalAccessRuntimeException(field.getDeclaringClass(), e);
            } catch (final IllegalArgumentException e) {
                final Class<?> clazz = field.getDeclaringClass();
                final Class<?> fieldClass = field.getType();
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 11.3K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/core/jar/JarInputStreamUtil.java

         */
        public static JarInputStream create(final InputStream is) throws IORuntimeException {
            assertArgumentNotNull("is", is);
    
            try {
                return new JarInputStream(is);
            } catch (final IOException e) {
                throw new IORuntimeException(e);
            }
        }
    
        /**
         * {@link JarInputStream#getNextJarEntry()}の例外処理をラップするメソッドです。
         *
         * @param is
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 2.4K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/core/xml/SchemaFactoryUtil.java

            try {
                schemaFactory.setProperty(XMLConstants.ACCESS_EXTERNAL_SCHEMA, "");
                schemaFactory.setProperty(XMLConstants.ACCESS_EXTERNAL_DTD, "");
            } catch (final Exception e) {
                if (logger.isDebugEnabled()) {
                    logger.debug("Failed to set a property.", e);
                }
            }
        }
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 2.6K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/core/lang/ClassLoaderUtil.java

            assertArgumentNotEmpty("name", name);
    
            try {
                final Enumeration<URL> e = loader.getResources(name);
                return new EnumerationIterator<>(e);
            } catch (final IOException e) {
                throw new IORuntimeException(e);
            }
        }
    
        /**
         * 指定されたバイナリ名を持つクラスをロードします。
         *
         * @param loader
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 8.2K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/core/message/MessageFormatter.java

                final String pattern = getPattern(messageCode);
                if (pattern != null) {
                    return MessageFormat.format(pattern, args);
                }
                return getNoPatternMessage(args);
            } catch (final Throwable ignore) {
                return getNoPatternMessage(args);
            }
        }
    
        /**
         * メッセージコードに対応するパターン文字列を返します。
         *
         * @param messageCode
         *            メッセージコード
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 5.6K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/core/log/Logger.java

            // TODO
            try {
                Class.forName("org.apache.commons.logging.LogFactory");
                return new JclLoggerAdapterFactory();
            } catch (final Throwable ignore) {
                return new JulLoggerAdapterFactory();
            }
        }
    
        /**
         * インスタンスを構築します。
         *
         * @param clazz
         *            ログ出力のカテゴリとなるクラス
         */
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 13.2K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/core/convert/TimeConversionUtil.java

         * @param str
         *            文字列
         * @return 変換された{@link Time}
         */
        protected static Time toSqlTimeJdbcEscape(final String str) {
            try {
                return Time.valueOf(str);
            } catch (final IllegalArgumentException ex) {
                return null;
            }
        }
    
        /**
         * パターン文字列を区切り文字を含まないプレーンなパターン文字列に変換して返します。
         *
         * @param pattern
         *            パターン文字列
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 21.2K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/core/nio/ChannelUtil.java

            assertArgumentNotNull("channel", channel);
            assertArgumentNotNull("mode", mode);
    
            try {
                return channel.map(mode, 0, channel.size());
            } catch (final IOException e) {
                throw new IORuntimeException(e);
            }
        }
    
        /**
         * ファイルのサイズを返します。
         *
         * @param channel
         *            ファイルチャネル。{@literal null}であってはいけません
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 6K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/core/timer/TimeoutManager.java

            final String value = System.getProperty("corelib.timeout_task.num_of_threads");
            if (StringUtil.isNotBlank(value)) {
                try {
                    nThreads = Integer.parseInt(value);
                } catch (final NumberFormatException e) {
                    logger.warn("Failed to parse " + value, e);
                }
            }
            if (nThreads < 1) {
                nThreads = 1;
            }
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 8K bytes
    - Viewed (0)
Back to top