- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for NullWriter (0.49 sec)
-
guava/src/com/google/common/io/CharStreams.java
/** * Returns a {@link Writer} that simply discards written chars. * * @since 15.0 */ public static Writer nullWriter() { return NullWriter.INSTANCE; } private static final class NullWriter extends Writer { private static final NullWriter INSTANCE = new NullWriter(); @Override public void write(int c) {} @Override public void write(char[] cbuf) {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed May 17 14:35:11 UTC 2023 - 10.9K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/io/CharStreamsTest.java
// create a null writer Writer nullWriter = CharStreams.nullWriter(); // write to the writer nullWriter.write('n'); String test = "Test string for NullWriter"; nullWriter.write(test); nullWriter.write(test, 2, 10); nullWriter.append(null); nullWriter.append(null, 0, 4); assertThrows(IndexOutOfBoundsException.class, () -> nullWriter.append(null, -1, 4));
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Oct 21 14:28:19 UTC 2024 - 11.2K bytes - Viewed (0) -
guava-tests/test/com/google/common/io/CharStreamsTest.java
// create a null writer Writer nullWriter = CharStreams.nullWriter(); // write to the writer nullWriter.write('n'); String test = "Test string for NullWriter"; nullWriter.write(test); nullWriter.write(test, 2, 10); nullWriter.append(null); nullWriter.append(null, 0, 4); assertThrows(IndexOutOfBoundsException.class, () -> nullWriter.append(null, -1, 4));
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Oct 21 14:28:19 UTC 2024 - 11.2K bytes - Viewed (0)