- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for CountingOutputStream (0.12 sec)
-
android/guava/src/com/google/common/io/CountingOutputStream.java
*/ @J2ktIncompatible @GwtIncompatible @ElementTypesAreNonnullByDefault public final class CountingOutputStream extends FilterOutputStream { private long count; /** * Wraps another output stream, counting the number of bytes written. * * @param out the output stream to be wrapped */ public CountingOutputStream(OutputStream out) { super(checkNotNull(out)); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Feb 28 20:13:02 UTC 2023 - 2K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/io/CountingOutputStreamTest.java
import java.io.ByteArrayOutputStream; /** * Unit tests for {@link CountingOutputStream}. * * @author Chris Nokleberg */ public class CountingOutputStreamTest extends IoTestCase { public void testCount() throws Exception { int written = 0; ByteArrayOutputStream out = new ByteArrayOutputStream(); CountingOutputStream counter = new CountingOutputStream(out); assertEquals(written, out.size());
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Sep 06 17:04:31 UTC 2023 - 1.9K bytes - Viewed (0)