Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for linesIterator (0.07 sec)

  1. guava/src/com/google/common/io/CharSource.java

        public Stream<String> lines() {
          return stream(linesIterator());
        }
    
        @Override
        @CheckForNull
        public String readFirstLine() {
          Iterator<String> lines = linesIterator();
          return lines.hasNext() ? lines.next() : null;
        }
    
        @Override
        public ImmutableList<String> readLines() {
          return ImmutableList.copyOf(linesIterator());
        }
    
        @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 31 14:20:11 UTC 2024
    - 25.5K bytes
    - Viewed (0)
  2. 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)
  3. 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)
  4. 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