- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 52 for readFile (0.53 sec)
-
android/guava/src/com/google/common/io/CharStreams.java
Readable readable, LineProcessor<T> processor) throws IOException { checkNotNull(readable); checkNotNull(processor); LineReader lineReader = new LineReader(readable); String line; while ((line = lineReader.readLine()) != null) { if (!processor.processLine(line)) { break; } } return processor.getResult(); } /**
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Wed May 17 14:35:11 GMT 2023 - 10.9K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/io/ByteStreamsTest.java
} public void testNewDataInput_readLine() { ByteArrayDataInput in = ByteStreams.newDataInput( "This is a line\r\nThis too\rand this\nand also this".getBytes(Charsets.UTF_8)); assertEquals("This is a line", in.readLine()); assertEquals("This too", in.readLine()); assertEquals("and this", in.readLine()); assertEquals("and also this", in.readLine()); }
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Wed Sep 06 17:04:31 GMT 2023 - 21.9K bytes - Viewed (0) -
android/guava/src/com/google/common/io/FileBackedOutputStream.java
@Override public InputStream openStream() throws IOException { return openInputStream(); } }; } } /** * Returns a readable {@link ByteSource} view of the data that has been written to this stream. * * @since 15.0 */ public ByteSource asByteSource() { return source; }
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Thu Feb 22 17:40:56 GMT 2024 - 8.2K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/RangeMap.java
* #asMapOfRanges()}. */ @Override boolean equals(@CheckForNull Object o); /** Returns {@code asMapOfRanges().hashCode()}. */ @Override int hashCode(); /** Returns a readable string representation of this range map. */ @Override String toString();
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Thu Feb 22 21:19:52 GMT 2024 - 6.5K bytes - Viewed (0) -
guava-gwt/src-super/com/google/common/util/concurrent/super/com/google/common/util/concurrent/AbstractFuture.java
addDoneString(builder); } else { builder.append("PENDING"); } } return builder.append("]").toString(); } /** * Provide a human-readable explanation of why this future has not yet completed. * * @return null if an explanation cannot be provided because the future is done. */ @Nullable String pendingToString() {
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Mon Jan 22 19:37:41 GMT 2024 - 12.3K bytes - Viewed (0) -
android/guava/src/com/google/common/io/ByteSource.java
import java.io.Reader; import java.nio.charset.Charset; import java.util.Arrays; import java.util.Collection; import java.util.Iterator; import org.checkerframework.checker.nullness.qual.Nullable; /** * A readable source of bytes, such as a file. Unlike an {@link InputStream}, a {@code ByteSource} * is not an open, stateful stream for input that can be read and closed. Instead, it is an
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Wed May 17 14:35:11 GMT 2023 - 26.2K bytes - Viewed (0) -
guava/src/com/google/common/base/Functions.java
return "Functions.toStringFunction()"; } } /** * Returns the identity function. * * <p><b>Discouraged:</b> Prefer using a lambda like {@code v -> v}, which is shorter and often * more readable. */ // implementation is "fully variant"; E has become a "pass-through" type @SuppressWarnings("unchecked") public static <E extends @Nullable Object> Function<E, E> identity() {
Java - Registered: Fri Apr 05 12:43:09 GMT 2024 - Last Modified: Thu Feb 15 16:12:13 GMT 2024 - 14.1K bytes - Viewed (0) -
guava-tests/test/com/google/common/io/FilesTest.java
assertThrows(NullPointerException.class, () -> Files.newReader(null, Charsets.UTF_8)); BufferedReader r = Files.newReader(asciiFile, Charsets.US_ASCII); try { assertEquals(ASCII, r.readLine()); } finally { r.close(); } } public void testNewWriter() throws IOException { File temp = createTempFile();
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Wed Sep 06 17:04:31 GMT 2023 - 22.2K bytes - Viewed (0) -
guava-testlib/src/com/google/common/testing/FreshValueGenerator.java
StringReader generateStringReader() { return new StringReader(generateString()); } @Generates Reader generateReader() { return generateStringReader(); } @Generates Readable generateReadable() { return generateReader(); } @Generates Buffer generateBuffer() { return generateCharBuffer(); } @Generates CharBuffer generateCharBuffer() {
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Wed Apr 17 16:33:44 GMT 2024 - 28.6K bytes - Viewed (0) -
guava-tests/test/com/google/common/reflect/TypeTokenTest.java
assertAssignable( new TypeToken<NumberList<? super Integer>>() {}, new TypeToken<NumberList<?>>() {}); } public <T extends Readable & Appendable> void testMultiBound() { assertAssignable(new TypeToken<List<T>>() {}, new TypeToken<List<? extends Readable>>() {}); assertAssignable(new TypeToken<List<T>>() {}, new TypeToken<List<? extends Appendable>>() {}); } public void testToGenericType() {
Java - Registered: Fri Apr 12 12:43:09 GMT 2024 - Last Modified: Thu Feb 22 17:15:24 GMT 2024 - 88.7K bytes - Viewed (0)