Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 89 for init (0.17 sec)

  1. src/main/java/org/codelibs/core/crypto/CachedCipher.java

            if (cipher == null) {
                final SecretKeySpec sksSpec = new SecretKeySpec(key.getBytes(), algorithm);
                try {
                    cipher = Cipher.getInstance(algorithm);
                    cipher.init(Cipher.ENCRYPT_MODE, sksSpec);
                } catch (final InvalidKeyException e) {
                    throw new InvalidKeyRuntimeException(e);
                } catch (final NoSuchAlgorithmException e) {
    Java
    - Registered: Fri Apr 26 20:58:09 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 8.1K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/core/lang/ModifierUtil.java

         */
        public static boolean isPublicStaticFinal(final int modifier) {
            return isPublic(modifier) && isStatic(modifier) && isFinal(modifier);
        }
    
        /**
         * <code>public</code>かどうか返します。
         *
         * @param modifier
         *            モディファイヤ
         * @return <code>public</code>かどうか
         */
        public static boolean isPublic(final int modifier) {
            return Modifier.isPublic(modifier);
        }
    
    Java
    - Registered: Fri Apr 26 20:58:09 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 5.5K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/core/beans/BeanDesc.java

         * @param index
         *            {@link PropertyDesc}のインデックス
         * @return {@link PropertyDesc}
         */
        PropertyDesc getPropertyDesc(int index);
    
        /**
         * {@link PropertyDesc}の数を返します。
         *
         * @return {@link PropertyDesc}の数
         */
        int getPropertyDescSize();
    
        /**
         * {@link PropertyDesc}の{@link Iterable}を返します。
         *
         * @return {@link PropertyDesc}の{@link Iterable}
    Java
    - Registered: Fri Apr 26 20:58:09 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 8.2K bytes
    - Viewed (0)
  4. src/test/java/org/codelibs/core/collection/ArrayMapTest.java

         * @throws Exception
         */
        @Test
        public void testPerformance() throws Exception {
            int num = 100000;
            Map<String, Object> hmap = new HashMap<String, Object>();
            Map<String, Object> amap = new ArrayMap<String, Object>();
    
            long start = System.currentTimeMillis();
            for (int i = 0; i < num; i++) {
                hmap.put(String.valueOf(i), null);
            }
    Java
    - Registered: Fri Apr 26 20:58:09 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 10.7K bytes
    - Viewed (0)
  5. src/test/java/org/codelibs/core/beans/impl/BeanDescImplTest.java

                return new Integer(3);
            }
    
            /**
             * @param arg1
             * @param arg2
             * @return int
             */
            public int add2(final int arg1, final int arg2) {
                return arg1 + arg2;
            }
    
            /**
             * @param arg
             * @return Integer
             */
    Java
    - Registered: Fri Apr 26 20:58:09 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 13.9K bytes
    - Viewed (0)
  6. src/test/java/org/codelibs/core/timer/TimeoutManagerTest.java

     */
    package org.codelibs.core.timer;
    
    import junit.framework.TestCase;
    
    /**
     * @author higa
     *
     */
    public class TimeoutManagerTest extends TestCase {
    
        private int expiredCount;
    
        protected void setUp() throws Exception {
            expiredCount = 0;
            TimeoutManager.getInstance().clear();
        }
    
        protected void tearDown() throws Exception {
    Java
    - Registered: Fri Apr 26 20:58:09 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 2.1K bytes
    - Viewed (0)
  7. src/test/java/org/codelibs/core/zip/ZipFileUtilTest.java

            final URL url = new URL(null, "zip:/Program Files/foo.zip!/", new URLStreamHandler() {
                @Override
                protected void parseURL(final URL u, final String spec, final int start, final int limit) {
                    setURL(u, "zip", null, 0, null, null, spec.substring(4), null, null);
                }
    
                @Override
                protected URLConnection openConnection(final URL u) throws IOException {
    Java
    - Registered: Fri Apr 26 20:58:09 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 1.6K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/core/sql/PreparedStatementUtil.java

         * @param ps
         *            {@link PreparedStatement}。{@literal null}であってはいけません
         * @return 更新した結果の行数
         * @throws SQLRuntimeException
         *             {@link SQLException}が発生した場合
         */
        public static int executeUpdate(final PreparedStatement ps) throws SQLRuntimeException {
            assertArgumentNotNull("ps", ps);
    
            try {
                return ps.executeUpdate();
            } catch (final SQLException ex) {
    Java
    - Registered: Fri Apr 26 20:58:09 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 3.9K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/core/convert/StringConversionUtil.java

         */
        public static String fromWindowsMapping(final String source) {
            if (isEmpty(source)) {
                return source;
            }
            final char[] array = source.toCharArray();
            for (int i = 0; i < array.length; ++i) {
                switch (array[i]) {
                case WAVE_DASH:
                    array[i] = FULLWIDTH_TILDE;
                    break;
                case DOUBLE_VERTICAL_LINE:
    Java
    - Registered: Fri Apr 26 20:58:09 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 6.5K bytes
    - Viewed (0)
  10. src/test/java/org/codelibs/core/text/TokenizerTest.java

        }
    
        /**
         * @throws Exception
         */
        @Test
        public void testHyphen() throws Exception {
            final Tokenizer tokenizer = new Tokenizer("       - ");
            assertThat(tokenizer.nextToken(), is((int) '-'));
            assertThat(tokenizer.nextToken(), is(Tokenizer.TT_EOF));
        }
    
        /**
         * @throws Exception
         */
        @Test
        public void pend_testDot() throws Exception {
    Java
    - Registered: Fri Apr 26 20:58:09 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 2K bytes
    - Viewed (0)
Back to top