- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for linesIterator (0.15 sec)
-
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) -
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) -
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)