- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 53 for StringReader (0.26 sec)
-
src/test/java/org/codelibs/core/io/LineIteratorTest.java
import static org.junit.Assert.assertThat; import java.io.StringReader; import org.junit.Test; /** * @author koichik */ public class LineIteratorTest { /** * @throws Exception */ @Test public void test() throws Exception { final StringReader reader = new StringReader("aaa\nbbb\nccc\n"); final LineIterator it = new LineIterator(reader);
Java - Registered: Fri Apr 26 20:58:09 GMT 2024 - Last Modified: Thu Mar 07 01:59:08 GMT 2024 - 1.7K bytes - Viewed (0) -
android/guava-tests/benchmark/com/google/common/io/BaseEncodingBenchmark.java
} return tmp; } @Benchmark public int decodingStream(int reps) throws IOException { int tmp = 0; byte[] target = new byte[n]; for (int i = 0; i < reps; i++) { StringReader source = new StringReader(decodingInputs[i & INPUTS_MASK]); InputStream decodingStream = encoding.encoding.decodingStream(source); decodingStream.read(target); decodingStream.close(); tmp += target[0];
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Mon Dec 04 17:37:03 GMT 2017 - 3.2K bytes - Viewed (0) -
guava-tests/test/com/google/common/io/CharStreamsTest.java
public void testToString() throws IOException { assertEquals(TEXT, CharStreams.toString(new StringReader(TEXT))); } public void testReadLines() throws IOException { List<String> lines = CharStreams.readLines(new StringReader("a\nb\nc")); assertEquals(ImmutableList.of("a", "b", "c"), lines); } public void testReadLines_withLineProcessor() throws IOException {
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Wed Sep 06 17:04:31 GMT 2023 - 11.2K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/io/CharStreamsTest.java
public void testToString() throws IOException { assertEquals(TEXT, CharStreams.toString(new StringReader(TEXT))); } public void testReadLines() throws IOException { List<String> lines = CharStreams.readLines(new StringReader("a\nb\nc")); assertEquals(ImmutableList.of("a", "b", "c"), lines); } public void testReadLines_withLineProcessor() throws IOException {
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Wed Sep 06 17:04:31 GMT 2023 - 11.2K bytes - Viewed (0) -
src/test/java/org/codelibs/core/collection/IndexedIteratorTest.java
} } /** * @throws Exception */ @Test public void testForEachLineIterator() throws Exception { final StringReader reader = new StringReader("aaa\nbbb\nccc\n"); for (final Indexed<String> indexed : indexed(iterable(reader))) { System.out.println(indexed.getIndex()); System.out.println(indexed.getElement()); }
Java - Registered: Fri Apr 26 20:58:09 GMT 2024 - Last Modified: Thu Mar 07 01:59:08 GMT 2024 - 2.7K bytes - Viewed (0) -
guava-tests/benchmark/com/google/common/io/BaseEncodingBenchmark.java
} return tmp; } @Benchmark public int decodingStream(int reps) throws IOException { int tmp = 0; byte[] target = new byte[n]; for (int i = 0; i < reps; i++) { StringReader source = new StringReader(decodingInputs[i & INPUTS_MASK]); InputStream decodingStream = encoding.encoding.decodingStream(source); decodingStream.read(target); decodingStream.close(); tmp += target[0];
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Mon Dec 04 17:37:03 GMT 2017 - 3.2K bytes - Viewed (0) -
guava-tests/test/com/google/common/io/CharSinkTest.java
sink.write(STRING); assertTrue(sink.wasStreamOpened() && sink.wasStreamClosed()); assertEquals(STRING, sink.getString()); } public void testWriteFrom_reader() throws IOException { StringReader reader = new StringReader(STRING); sink.writeFrom(reader); assertTrue(sink.wasStreamOpened() && sink.wasStreamClosed()); assertEquals(STRING, sink.getString()); }
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Wed Sep 06 17:04:31 GMT 2023 - 4.4K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/io/CharSinkTest.java
sink.write(STRING); assertTrue(sink.wasStreamOpened() && sink.wasStreamClosed()); assertEquals(STRING, sink.getString()); } public void testWriteFrom_reader() throws IOException { StringReader reader = new StringReader(STRING); sink.writeFrom(reader); assertTrue(sink.wasStreamOpened() && sink.wasStreamClosed()); assertEquals(STRING, sink.getString()); }
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Wed Sep 06 17:04:31 GMT 2023 - 4K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/io/MultiReaderTest.java
*/ package com.google.common.io; import com.google.common.collect.ImmutableList; import java.io.FilterReader; import java.io.IOException; import java.io.Reader; import java.io.StringReader; import junit.framework.TestCase; /** @author ricebin */ public class MultiReaderTest extends TestCase { public void testOnlyOneOpen() throws Exception { String testString = "abcdefgh";
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Mon Dec 04 17:37:03 GMT 2017 - 3.7K bytes - Viewed (0) -
maven-core/src/test/java/org/apache/maven/configuration/DefaultBeanConfiguratorPathTest.java
* specific language governing permissions and limitations * under the License. */ package org.apache.maven.configuration; import javax.xml.stream.XMLStreamException; import java.io.File; import java.io.StringReader; import java.nio.file.Path; import java.nio.file.Paths; import org.apache.maven.configuration.internal.DefaultBeanConfigurator; import org.apache.maven.internal.xml.XmlNodeStaxBuilder;
Java - Registered: Sun Apr 21 03:35:09 GMT 2024 - Last Modified: Mon Mar 25 10:50:01 GMT 2024 - 3.8K bytes - Viewed (0)