Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 8 of 8 for TestOutputStream (0.14 seconds)

  1. android/guava-tests/test/com/google/common/io/TestOutputStream.java

    /**
     * @author Colin Decker
     */
    @NullUnmarked
    public class TestOutputStream extends FilterOutputStream {
    
      private final ImmutableSet<TestOption> options;
      private boolean closed;
    
      public TestOutputStream(OutputStream out, TestOption... options) throws IOException {
        this(out, Arrays.asList(options));
      }
    
      public TestOutputStream(OutputStream out, Iterable<TestOption> options) throws IOException {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Dec 19 18:03:30 GMT 2024
    - 2.3K bytes
    - Click Count (0)
  2. guava-tests/test/com/google/common/io/TestOutputStream.java

    /**
     * @author Colin Decker
     */
    @NullUnmarked
    public class TestOutputStream extends FilterOutputStream {
    
      private final ImmutableSet<TestOption> options;
      private boolean closed;
    
      public TestOutputStream(OutputStream out, TestOption... options) throws IOException {
        this(out, Arrays.asList(options));
      }
    
      public TestOutputStream(OutputStream out, Iterable<TestOption> options) throws IOException {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Dec 19 18:03:30 GMT 2024
    - 2.3K bytes
    - Click Count (0)
  3. guava-tests/test/com/google/common/io/TestWriter.java

    /**
     * @author Colin Decker
     */
    @NullUnmarked
    public class TestWriter extends FilterWriter {
    
      private final TestOutputStream out;
    
      public TestWriter(TestOption... options) throws IOException {
        this(new TestOutputStream(ByteStreams.nullOutputStream(), options));
      }
    
      public TestWriter(TestOutputStream out) {
        super(new OutputStreamWriter(checkNotNull(out), UTF_8));
        this.out = out;
      }
    
      @Override
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Dec 19 18:03:30 GMT 2024
    - 1.7K bytes
    - Click Count (0)
  4. android/guava-tests/test/com/google/common/io/TestWriter.java

    /**
     * @author Colin Decker
     */
    @NullUnmarked
    public class TestWriter extends FilterWriter {
    
      private final TestOutputStream out;
    
      public TestWriter(TestOption... options) throws IOException {
        this(new TestOutputStream(ByteStreams.nullOutputStream(), options));
      }
    
      public TestWriter(TestOutputStream out) {
        super(new OutputStreamWriter(checkNotNull(out), UTF_8));
        this.out = out;
      }
    
      @Override
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Dec 19 18:03:30 GMT 2024
    - 1.7K bytes
    - Click Count (0)
  5. guava-tests/test/com/google/common/io/ByteSourceTest.java

        ByteSource slice = source.slice(offset, length);
    
        assertArrayEquals(expected, slice.read());
      }
    
      public void testCopyToStream_doesNotCloseThatStream() throws IOException {
        TestOutputStream out = new TestOutputStream(ByteStreams.nullOutputStream());
        assertFalse(out.closed());
        source.copyTo(out);
        assertFalse(out.closed());
      }
    
      public void testClosesOnErrors_copyingToByteSinkThatThrows() {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 19 18:53:45 GMT 2026
    - 15.6K bytes
    - Click Count (0)
  6. android/guava-tests/test/com/google/common/io/TestByteSink.java

      }
    
      @Override
      public OutputStream openStream() throws IOException {
        outputStreamOpened = true;
        bytes.reset(); // truncate
        return new Out();
      }
    
      private final class Out extends TestOutputStream {
    
        Out() throws IOException {
          super(bytes, options);
        }
    
        @Override
        public void close() throws IOException {
          outputStreamClosed = true;
          super.close();
        }
      }
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Jul 14 14:44:08 GMT 2025
    - 1.9K bytes
    - Click Count (0)
  7. android/guava-tests/test/com/google/common/io/ByteSourceTest.java

        ByteSource slice = source.slice(offset, length);
    
        assertArrayEquals(expected, slice.read());
      }
    
      public void testCopyToStream_doesNotCloseThatStream() throws IOException {
        TestOutputStream out = new TestOutputStream(ByteStreams.nullOutputStream());
        assertFalse(out.closed());
        source.copyTo(out);
        assertFalse(out.closed());
      }
    
      public void testClosesOnErrors_copyingToByteSinkThatThrows() {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 19 18:53:45 GMT 2026
    - 15.6K bytes
    - Click Count (0)
  8. guava-tests/test/com/google/common/io/TestByteSink.java

      }
    
      @Override
      public OutputStream openStream() throws IOException {
        outputStreamOpened = true;
        bytes.reset(); // truncate
        return new Out();
      }
    
      private final class Out extends TestOutputStream {
    
        Out() throws IOException {
          super(bytes, options);
        }
    
        @Override
        public void close() throws IOException {
          outputStreamClosed = true;
          super.close();
        }
      }
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Jul 14 14:44:08 GMT 2025
    - 1.9K bytes
    - Click Count (0)
Back to Top