Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 20 for StringReader (0.08 sec)

  1. 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());
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 31 14:20:11 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  2. 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 {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 21 14:28:19 UTC 2024
    - 11.2K bytes
    - Viewed (0)
  3. 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 {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 21 14:28:19 UTC 2024
    - 11.2K bytes
    - Viewed (0)
  4. compat/maven-embedder/src/test/java/org/apache/maven/cli/props/MavenPropertiesTest.java

                    + "                        \n";
    
            java.util.Properties props1 = new java.util.Properties();
            props1.load(new StringReader(config));
    
            MavenProperties props2 = new MavenProperties();
            props2.load(new StringReader(config));
    
            String s325 = props1.getProperty(" \r");
            assertEquals("\n \t \f", s325, "1");
            String s324 = props1.getProperty("a");
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 16.4K bytes
    - Viewed (0)
  5. compat/maven-model/src/test/java/org/apache/maven/model/v4/ModelXmlTest.java

     * specific language governing permissions and limitations
     * under the License.
     */
    package org.apache.maven.model.v4;
    
    import javax.xml.stream.XMLStreamException;
    
    import java.io.IOException;
    import java.io.StringReader;
    import java.io.StringWriter;
    import java.util.LinkedHashMap;
    import java.util.Map;
    
    import org.apache.maven.api.model.Model;
    import org.apache.maven.api.model.Plugin;
    import org.apache.maven.api.xml.XmlNode;
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  6. compat/maven-model-builder/src/test/java/org/apache/maven/model/inheritance/MergerTest.java

     * specific language governing permissions and limitations
     * under the License.
     */
    package org.apache.maven.model.inheritance;
    
    import java.io.InputStream;
    import java.io.StringReader;
    
    import org.apache.maven.api.model.InputLocation;
    import org.apache.maven.api.model.InputSource;
    import org.apache.maven.api.model.Model;
    import org.apache.maven.model.v4.MavenMerger;
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  7. guava-testlib/src/com/google/common/testing/ArbitraryInstances.java

              .put(ByteArrayInputStream.class, new ByteArrayInputStream(new byte[0]))
              .put(Readable.class, new StringReader(""))
              .put(Reader.class, new StringReader(""))
              .put(StringReader.class, new StringReader(""))
              .put(Buffer.class, ByteBuffer.allocate(0))
              .put(CharBuffer.class, CharBuffer.allocate(0))
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 21.2K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/io/BaseEncodingTest.java

    import com.google.common.io.BaseEncoding.DecodingException;
    import java.io.IOException;
    import java.io.InputStream;
    import java.io.OutputStream;
    import java.io.Reader;
    import java.io.StringReader;
    import java.io.StringWriter;
    import junit.framework.TestCase;
    import org.checkerframework.checker.nullness.qual.Nullable;
    
    /**
     * Tests for {@code BaseEncoding}.
     *
     * @author Louis Wasserman
     */
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 21 16:27:30 UTC 2024
    - 24.6K bytes
    - Viewed (0)
  9. compat/maven-compat/src/main/java/org/apache/maven/project/interpolation/AbstractStringBasedModelInterpolator.java

            }
    
            String serializedModel = sWriter.toString();
            serializedModel = interpolate(serializedModel, model, projectDir, config, debugEnabled);
    
            StringReader sReader = new StringReader(serializedModel);
    
            MavenStaxReader modelReader = new MavenStaxReader();
            try {
                model = new Model(modelReader.read(sReader));
            } catch (XMLStreamException e) {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 13.5K bytes
    - Viewed (0)
  10. android/guava-testlib/src/com/google/common/testing/ArbitraryInstances.java

              .put(ByteArrayInputStream.class, new ByteArrayInputStream(new byte[0]))
              .put(Readable.class, new StringReader(""))
              .put(Reader.class, new StringReader(""))
              .put(StringReader.class, new StringReader(""))
              .put(Buffer.class, ByteBuffer.allocate(0))
              .put(CharBuffer.class, CharBuffer.allocate(0))
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 20.8K bytes
    - Viewed (0)
Back to top