Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 66 for try (0.12 sec)

  1. src/main/java/org/codelibs/core/io/ClassTraversalUtil.java

            final int startPos = prefix.length();
            ZipEntry entry = null;
            while ((entry = ZipInputStreamUtil.getNextEntry(zipInputStream)) != null) {
                try {
                    final String entryName = entry.getName().replace('\\', '/');
                    if (entryName.startsWith(prefix) && entryName.endsWith(CLASS_SUFFIX)) {
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 11.1K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/core/convert/TimeConversionUtil.java

        /**
         * 文字列を{@link Time}に変換します。
         *
         * @param str
         *            文字列
         * @return 変換された{@link Time}
         */
        protected static Time toSqlTimeJdbcEscape(final String str) {
            try {
                return Time.valueOf(str);
            } catch (final IllegalArgumentException ex) {
                return null;
            }
        }
    
        /**
         * パターン文字列を区切り文字を含まないプレーンなパターン文字列に変換して返します。
         *
    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)
  3. src/main/java/org/codelibs/core/lang/MethodUtil.java

                throws InvocationTargetRuntimeException, IllegalAccessRuntimeException {
            assertArgumentNotNull("method", method);
    
            try {
                return (T) method.invoke(target, args);
            } catch (final InvocationTargetException ex) {
                final Throwable t = ex.getCause();
                if (t instanceof RuntimeException) {
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 13.8K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/core/collection/ArrayMap.java

            protected int last = -1;
    
            @Override
            public boolean hasNext() {
                return current != size;
            }
    
            @Override
            public Entry<K, V> next() {
                try {
                    final Entry<K, V> n = listTable[current];
                    last = current++;
                    return n;
                } catch (final IndexOutOfBoundsException e) {
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 20.6K bytes
    - Viewed (1)
  5. src/main/java/org/codelibs/core/net/URLUtil.java

         *            URL。{@literal null}であってはいけません
         * @return URLが表すリソースを読み込むための{@link InputStream}
         */
        public static InputStream openStream(final URL url) {
            assertArgumentNotNull("url", url);
    
            try {
                final URLConnection connection = url.openConnection();
                connection.setUseCaches(false);
                return connection.getInputStream();
            } catch (final IOException e) {
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 7.3K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/core/io/PropertiesUtil.java

         */
        public static void load(final Properties props, final InputStream in) {
            assertArgumentNotNull("props", props);
            assertArgumentNotNull("in", in);
    
            try {
                props.load(in);
            } catch (final IOException e) {
                throw new IORuntimeException(e);
            }
        }
    
        /**
         * {@link Properties#load(Reader)}の例外処理をラップします。
         * <p>
    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)
  7. src/main/java/org/codelibs/core/stream/StreamUtil.java

                this.supplier = supplier;
            }
    
            public void of(final Consumer<Stream<T>> stream) {
                try (Stream<T> s = supplier.get()) {
                    stream.accept(s);
                }
            }
    
            public <R> R get(final Function<Stream<T>, R> stream) {
                try (Stream<T> s = supplier.get()) {
                    return stream.apply(s);
                }
            }
        }
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 2K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/core/misc/DynamicProperties.java

            FileOutputStream fos = null;
            try {
                fos = new FileOutputStream(propertiesFile);
                properties.store(fos, propertiesFile.getName());
            } catch (final IOException e) {
                throw new FileAccessException("ECL0112", new Object[] { propertiesFile.getAbsolutePath() }, e);
            } finally {
                if (fos != null) {
                    try {
                        fos.close();
    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)
  9. src/main/java/org/codelibs/core/sql/DriverManagerUtil.java

         *
         * @param driver
         *            登録するJDBCドライバ。{@literal null}であってはいけません
         */
        public static void registerDriver(final Driver driver) {
            assertArgumentNotNull("driver", driver);
    
            try {
                DriverManager.registerDriver(driver);
            } catch (final SQLException e) {
                throw new SQLRuntimeException(e);
            }
        }
    
        /**
         * JDBCドライバを登録解除します。
         *
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 3.3K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/core/net/JarURLConnectionUtil.java

         * @return {@link JarFile}
         */
        public static JarFile getJarFile(final JarURLConnection conn) {
            assertArgumentNotNull("conn", conn);
    
            try {
                return conn.getJarFile();
            } catch (final IOException e) {
                throw new IORuntimeException(e);
            }
        }
    
    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)
Back to top