Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 89 for init (7.07 sec)

  1. src/main/java/org/codelibs/core/nio/ChannelUtil.java

         *
         * @param channel
         *            ファイルチャネル。{@literal null}であってはいけません
         * @param buffer
         *            バイトバッファ。{@literal null}であってはいけません
         * @return 読み込んだバイト数
         */
        public static int read(final FileChannel channel, final ByteBuffer buffer) {
            assertArgumentNotNull("channel", channel);
            assertArgumentNotNull("buffer", buffer);
    
            try {
                return channel.read(buffer);
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 6K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/core/timer/TimeoutManager.java

         * 管理している {@link TimeoutTask}の数を返します。
         *
         * @return 管理している {@link TimeoutTask}の数
         */
        public synchronized int getTimeoutTaskCount() {
            return timeoutTaskList.size();
        }
    
        @Override
        public void run() {
            int nThreads = Runtime.getRuntime().availableProcessors() / 2;
            final String value = System.getProperty("corelib.timeout_task.num_of_threads");
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 8K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/core/io/InputStreamUtil.java

    import org.codelibs.core.exception.IORuntimeException;
    
    /**
     * {@link InputStream}用のユーティリティクラスです。
     *
     * @author higa
     */
    public abstract class InputStreamUtil {
    
        /** デフォルトのバッファサイズ */
        private static final int BUF_SIZE = 4096;
    
        /**
         * {@link FileInputStream}を作成します。
         *
         * @param file
         *            ファイル。{@literal null}であってはいけません
         * @return ファイルから入力する{@link FileInputStream}
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 3.2K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/core/collection/MultiIterator.java

     *            要素の型
     */
    public class MultiIterator<E> implements Iterator<E> {
    
        /** {@link Iterator}の配列 */
        protected final Iterator<E>[] iterators;
    
        /** 現在反復中の{@link Iterator}のインデックス */
        protected int index;
    
        /**
         * for each構文で使用するために{@link MultiIterator}をラップした{@link Iterable}を返します。
         *
         * @param <E>
         *            要素の型
         * @param iterables
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 3.7K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/core/lang/MethodUtil.java

         */
        public static boolean isHashCodeMethod(final Method method) {
            assertArgumentNotNull("method", method);
    
            return method != null && method.getName().equals("hashCode") && method.getReturnType() == int.class
                    && method.getParameterTypes().length == 0;
        }
    
        /**
         * {@literal toString()}メソッドかどうか返します。
         *
         * @param method
         *            メソッド。{@literal null}であってはいけません
    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)
  6. src/main/java/org/codelibs/core/io/ResourceTraversalUtil.java

            assertArgumentNotNull("jarFile", jarFile);
            assertArgumentNotNull("prefix", prefix);
            assertArgumentNotNull("handler", handler);
    
            final int pos = prefix.length();
            for (final JarEntry entry : iterable(jarFile.entries())) {
                if (!entry.isDirectory()) {
                    final String entryName = entry.getName().replace('\\', '/');
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 10.5K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/core/collection/CaseInsensitiveMap.java

         */
        public CaseInsensitiveMap() {
        }
    
        /**
         * {@link CaseInsensitiveMap}を作成します。
         *
         * @param capacity
         *            初期容量
         */
        public CaseInsensitiveMap(final int capacity) {
            super(capacity);
        }
    
        /**
         * キーが含まれているかどうかを返します。
         *
         * @param key
         *            キー
         * @return キーが含まれているかどうか
         */
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 2.3K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/core/text/DecimalFormatUtil.java

            final char decimalSep = symbols.getDecimalSeparator();
            final char groupingSep = symbols.getGroupingSeparator();
            final StringBuilder buf = new StringBuilder(20);
            for (int i = 0; i < s.length(); ++i) {
                char c = s.charAt(i);
                if (c == groupingSep) {
                    continue;
                } else if (c == decimalSep) {
                    c = '.';
                }
    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)
  9. src/main/java/org/codelibs/core/lang/ClassUtil.java

         * @return パッケージ名
         */
        public static String getPackageName(final Class<?> clazz) {
            assertArgumentNotNull("clazz", clazz);
    
            final String fqcn = clazz.getName();
            final int pos = fqcn.lastIndexOf('.');
            if (pos > 0) {
                return fqcn.substring(0, pos);
            }
            return null;
        }
    
        /**
         * FQCNからパッケージ名を除いた名前を返します。
         *
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 27.5K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/core/misc/Base64Util.java

            if (ArrayUtil.isEmpty(inData)) {
                return "";
            }
            final int mod = inData.length % 3;
            final int num = inData.length / 3;
            char[] outData = null;
            if (mod != 0) {
                outData = new char[(num + 1) * 4];
            } else {
                outData = new char[num * 4];
            }
            for (int i = 0; i < num; i++) {
                encode(inData, i * 3, outData, i * 4);
            }
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 6.3K bytes
    - Viewed (0)
Back to top