Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 15 for wasStreamClosed (0.13 sec)

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

        assertTrue(sink.wasStreamOpened() && sink.wasStreamClosed());
    
        assertEquals(STRING, sink.getString());
      }
    
      public void testRead_toString() throws IOException {
        assertEquals(STRING, source.read());
        assertTrue(source.wasStreamOpened() && source.wasStreamClosed());
      }
    
      public void testReadFirstLine() throws IOException {
        TestCharSource lines = new TestCharSource(LINES);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 31 14:20:11 UTC 2024
    - 11.4K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/io/CharSinkTest.java

        assertFalse(sink.wasStreamClosed());
    
        writer.write(STRING);
        writer.close();
    
        assertTrue(sink.wasStreamClosed());
        assertEquals(STRING, sink.getString());
      }
    
      public void testWrite_string() throws IOException {
        assertEquals("", sink.getString());
        sink.write(STRING);
    
        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)
  3. guava-tests/test/com/google/common/io/ByteSourceTest.java

        assertTrue(sink.wasStreamOpened() && sink.wasStreamClosed());
    
        assertArrayEquals(bytes, sink.getBytes());
      }
    
      public void testRead_toArray() throws IOException {
        assertArrayEquals(bytes, source.read());
        assertTrue(source.wasStreamOpened() && source.wasStreamClosed());
      }
    
      public void testRead_withProcessor() throws IOException {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 15.4K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/io/TestCharSource.java

      }
    
      @Override
      public boolean wasStreamOpened() {
        return byteSource.wasStreamOpened();
      }
    
      @Override
      public boolean wasStreamClosed() {
        return byteSource.wasStreamClosed();
      }
    
      @Override
      public Reader openStream() throws IOException {
        return new InputStreamReader(byteSource.openStream(), UTF_8);
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 23 14:22:54 UTC 2024
    - 1.4K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/io/CharSourceTest.java

        assertTrue(sink.wasStreamOpened() && sink.wasStreamClosed());
    
        assertEquals(STRING, sink.getString());
      }
    
      public void testRead_toString() throws IOException {
        assertEquals(STRING, source.read());
        assertTrue(source.wasStreamOpened() && source.wasStreamClosed());
      }
    
      public void testReadFirstLine() throws IOException {
        TestCharSource lines = new TestCharSource(LINES);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue May 07 15:26:58 UTC 2024
    - 11.4K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/io/ByteSinkTest.java

      public void testOpenBufferedStream() throws IOException {
        OutputStream out = sink.openBufferedStream();
        assertTrue(sink.wasStreamOpened());
        assertFalse(sink.wasStreamClosed());
    
        out.write(new byte[] {1, 2, 3, 4});
        out.close();
    
        assertTrue(sink.wasStreamClosed());
        assertArrayEquals(new byte[] {1, 2, 3, 4}, sink.getBytes());
      }
    
      public void testWrite_bytes() throws IOException {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 3.7K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/io/ByteSinkTest.java

      public void testOpenBufferedStream() throws IOException {
        OutputStream out = sink.openBufferedStream();
        assertTrue(sink.wasStreamOpened());
        assertFalse(sink.wasStreamClosed());
    
        out.write(new byte[] {1, 2, 3, 4});
        out.close();
    
        assertTrue(sink.wasStreamClosed());
        assertArrayEquals(new byte[] {1, 2, 3, 4}, sink.getBytes());
      }
    
      public void testWrite_bytes() throws IOException {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 3.7K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/io/ByteSourceTest.java

        assertTrue(sink.wasStreamOpened() && sink.wasStreamClosed());
    
        assertArrayEquals(bytes, sink.getBytes());
      }
    
      public void testRead_toArray() throws IOException {
        assertArrayEquals(bytes, source.read());
        assertTrue(source.wasStreamOpened() && source.wasStreamClosed());
      }
    
      public void testRead_withProcessor() throws IOException {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 15.4K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/io/TestCharSink.java

        return new String(byteSink.getBytes(), UTF_8);
      }
    
      @Override
      public boolean wasStreamOpened() {
        return byteSink.wasStreamOpened();
      }
    
      @Override
      public boolean wasStreamClosed() {
        return byteSink.wasStreamClosed();
      }
    
      @Override
      public Writer openStream() throws IOException {
        // using TestByteSink's output stream to get option behavior, so flush to it on every write
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 23 14:22:54 UTC 2024
    - 2K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/io/TestCharSource.java

      }
    
      @Override
      public boolean wasStreamOpened() {
        return byteSource.wasStreamOpened();
      }
    
      @Override
      public boolean wasStreamClosed() {
        return byteSource.wasStreamClosed();
      }
    
      @Override
      public Reader openStream() throws IOException {
        return new InputStreamReader(byteSource.openStream(), UTF_8);
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 23 14:22:54 UTC 2024
    - 1.4K bytes
    - Viewed (0)
Back to top