Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 252 for Final (0.36 sec)

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

         * @return ファイルへ出力する{@link FileOutputStream}
         * @see FileOutputStream#FileOutputStream(File)
         */
        public static FileOutputStream create(final File file) {
            assertArgumentNotNull("file", file);
    
            try {
                return new FileOutputStream(file);
            } catch (final IOException e) {
                throw new IORuntimeException(e);
            }
        }
    
        /**
         * {@link OutputStream}をflushします。
         *
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 1.9K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/core/xml/DocumentBuilderUtil.java

         */
        public static Document parse(final DocumentBuilder builder, final InputStream is) {
            assertArgumentNotNull("builder", builder);
            assertArgumentNotNull("is", is);
    
            try {
                return builder.parse(is);
            } catch (final SAXException e) {
                throw new SAXRuntimeException(e);
            } 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.8K bytes
    - Viewed (0)
  3. src/test/java/org/codelibs/core/collection/EmptyIteratorTest.java

            exception.expectMessage(is("remove"));
            final EmptyIterator<String> emptyIterator = new EmptyIterator<String>();
            emptyIterator.remove();
        }
    
        /**
         * Test method for
         * {@link org.codelibs.core.collection.EmptyIterator#hasNext()}.
         */
        @Test
        public void testHasNext() {
            final EmptyIterator<String> emptyIterator = new EmptyIterator<String>();
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 2.5K bytes
    - Viewed (0)
  4. src/test/java/org/codelibs/core/io/InputStreamUtilTest.java

    /**
     * @author higa
     *
     */
    public class InputStreamUtilTest extends TestCase {
    
        /**
         * @throws Exception
         */
        public void testGetBytes() throws Exception {
            final InputStream is = ResourceUtil.getResourceAsStream(StringUtil.replace(getClass().getName(), ".", "/") + ".class");
            try {
                assertNotNull("1", InputStreamUtil.getBytes(is));
            } finally {
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 1.2K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/core/exception/IllegalKeyOfBeanMapException.java

    public class IllegalKeyOfBeanMapException extends ClIllegalArgumentException {
    
        private static final long serialVersionUID = 3456740832476626338L;
    
        /**
         * インスタンスを構築します。
         *
         * @param key
         *            マップのキー
         * @param map
         *            マップ
         */
        public IllegalKeyOfBeanMapException(final Object key, final Map<?, ?> map) {
            super("key", "ECL0016", asArray(key, map));
        }
    
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 1.3K bytes
    - Viewed (0)
  6. src/test/java/org/codelibs/core/collection/SLinkedListTest.java

            try {
                list.getEntry(-1);
                fail();
            } catch (final ClIndexOutOfBoundsException ex) {
                System.out.println(ex);
            }
            try {
                list.getEntry(3);
                fail();
            } catch (final ClIndexOutOfBoundsException ex) {
                System.out.println(ex);
            }
        }
    
        /**
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 8.3K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/core/collection/IndexedIterator.java

         */
        public static <T> Iterable<Indexed<T>> indexed(final Iterator<T> iterator) {
            assertArgumentNotNull("iterator", iterator);
    
            return () -> new IndexedIterator<>(iterator);
        }
    
        /**
         *
         * インスタンスを構築します。
         *
         * @param iterator
         *            イテレータ。{@literal null}であってはいけません
         */
        public IndexedIterator(final Iterator<T> iterator) {
    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)
  8. src/test/java/org/codelibs/core/convert/BinaryConversionUtilTest.java

         * .
         */
        @Test
        public void testToBinary() {
            assertThat(BinaryConversionUtil.toBinary(null), nullValue());
            final byte[] b = { 0x00, 0x01 };
            assertThat(BinaryConversionUtil.toBinary(b), is(b));
            assertThat(BinaryConversionUtil.toBinary("hoge"), is("hoge".getBytes()));
        }
    
        /**
         * Test method for
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 2K bytes
    - Viewed (0)
  9. src/test/java/org/codelibs/core/collection/LruHashMapTest.java

    import org.junit.Test;
    
    /**
     * @author taichi
     */
    public class LruHashMapTest {
    
        /**
         * @throws Exception
         */
        @Test
        public void testAll() throws Exception {
            final LruHashMap<String, String> lru = new LruHashMap<String, String>(3);
            lru.put("aaa", "111");
            lru.put("bbb", "222");
            lru.put("ccc", "333");
            assertThat(lru.get("aaa"), is("111"));
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 1.7K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/core/collection/SingleValueIterator.java

         * @return {@link SingleValueIterator}をラップした{@link Iterable}
         */
        public static <E> Iterable<E> iterable(final E value) {
            return () -> new SingleValueIterator<>(value);
        }
    
        /**
         * インスタンスを構築します。
         *
         * @param value
         *            反復子が返す唯一の値
         */
        public SingleValueIterator(final E value) {
            this.value = value;
        }
    
        @Override
        public boolean hasNext() {
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 2.2K bytes
    - Viewed (0)
Back to top