Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for openBufferedStream (0.1 sec)

  1. android/guava/src/com/google/common/io/CharSink.java

       *
       * @throws IOException if an I/O error occurs while opening the writer
       * @since 15.0 (in 14.0 with return type {@link BufferedWriter})
       */
      public Writer openBufferedStream() throws IOException {
        Writer writer = openStream();
        return (writer instanceof BufferedWriter)
            ? (BufferedWriter) writer
            : new BufferedWriter(writer);
      }
    
      /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 31 14:20:11 UTC 2024
    - 6.8K bytes
    - Viewed (0)
  2. guava/src/com/google/common/io/CharSource.java

       *
       * <p>The caller is responsible for ensuring that the returned reader is closed.
       *
       * @throws IOException if an I/O error occurs while of opening the reader
       */
      public BufferedReader openBufferedStream() throws IOException {
        Reader reader = openStream();
        return (reader instanceof BufferedReader)
            ? (BufferedReader) reader
            : new BufferedReader(reader);
      }
    
      /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 31 14:20:11 UTC 2024
    - 25.5K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/io/CharSinkTest.java

      private TestCharSink sink;
    
      @Override
      public void setUp() {
        sink = new TestCharSink();
      }
    
      public void testOpenBufferedStream() throws IOException {
        Writer writer = sink.openBufferedStream();
        assertTrue(sink.wasStreamOpened());
        assertFalse(sink.wasStreamClosed());
    
        writer.write(STRING);
        writer.close();
    
        assertTrue(sink.wasStreamClosed());
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 31 14:20:11 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  4. guava/src/com/google/common/io/ByteSink.java

       *
       * @throws IOException if an I/O error occurs while opening the stream
       * @since 15.0 (in 14.0 with return type {@link BufferedOutputStream})
       */
      public OutputStream openBufferedStream() throws IOException {
        OutputStream out = openStream();
        return (out instanceof BufferedOutputStream)
            ? (BufferedOutputStream) out
            : new BufferedOutputStream(out);
      }
    
      /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 28 16:55:09 UTC 2024
    - 5K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/io/CharSourceTest.java

      @Override
      public void setUp() {
        source = new TestCharSource(STRING);
      }
    
      public void testOpenBufferedStream() throws IOException {
        BufferedReader reader = source.openBufferedStream();
        assertTrue(source.wasStreamOpened());
        assertFalse(source.wasStreamClosed());
    
        StringWriter writer = new StringWriter();
        char[] buf = new char[64];
        int read;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 31 14:20:11 UTC 2024
    - 11.4K bytes
    - Viewed (0)
Back to top