Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for LineIterator (0.17 sec)

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

     * <p>
     * 次のように使います.
     * </p>
     *
     * <pre>
     * import static org.codelibs.core.io.LineIterator.*;
     *
     * BufferedReader reader = ...;
     * for (String line : iterable(reader)) {
     *     ...
     * }
     * </pre>
     *
     * @author koichik
     */
    public class LineIterator implements Iterator<String> {
    
        /** {@link #line}が空であることを示す{@literal String}オブジェクト */
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/core/io/LineIteratorTest.java

        /**
         * @throws Exception
         */
        @Test
        public void test() throws Exception {
            final StringReader reader = new StringReader("aaa\nbbb\nccc\n");
            final LineIterator it = new LineIterator(reader);
            assertThat(it.hasNext(), is(true));
            assertThat(it.next(), is("aaa"));
            assertThat(it.hasNext(), is(true));
            assertThat(it.next(), is("bbb"));
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  3. src/test/java/org/codelibs/core/collection/IndexedIteratorTest.java

     */
    package org.codelibs.core.collection;
    
    import static org.codelibs.core.collection.CollectionsUtil.newArrayList;
    import static org.codelibs.core.collection.IndexedIterator.indexed;
    import static org.codelibs.core.io.LineIterator.iterable;
    import static org.hamcrest.CoreMatchers.is;
    import static org.hamcrest.CoreMatchers.not;
    import static org.junit.Assert.assertThat;
    
    import java.io.StringReader;
    import java.util.List;
    
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 2.7K bytes
    - Viewed (0)
Back to top