Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for CharStreams (0.78 sec)

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

        Reader empty = new StringReader("");
        assertEquals(0, CharStreams.exhaust(empty));
        assertEquals(-1, empty.read());
      }
    
      public void testExhaust_readable() throws IOException {
        CharBuffer buf = CharBuffer.wrap(ASCII);
        assertEquals(ASCII.length(), CharStreams.exhaust(buf));
        assertEquals(0, buf.remaining());
        assertEquals(0, CharStreams.exhaust(buf));
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 21 14:28:19 UTC 2024
    - 11.2K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/io/CharStreamsTest.java

        Reader empty = new StringReader("");
        assertEquals(0, CharStreams.exhaust(empty));
        assertEquals(-1, empty.read());
      }
    
      public void testExhaust_readable() throws IOException {
        CharBuffer buf = CharBuffer.wrap(ASCII);
        assertEquals(ASCII.length(), CharStreams.exhaust(buf));
        assertEquals(0, buf.remaining());
        assertEquals(0, CharStreams.exhaust(buf));
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 21 14:28:19 UTC 2024
    - 11.2K bytes
    - Viewed (0)
  3. guava/src/com/google/common/io/CharSource.java

      public long copyTo(Appendable appendable) throws IOException {
        checkNotNull(appendable);
    
        Closer closer = Closer.create();
        try {
          Reader reader = closer.register(openStream());
          return CharStreams.copy(reader, appendable);
        } catch (Throwable e) {
          throw closer.rethrow(e);
        } finally {
          closer.close();
        }
      }
    
      /**
       * Copies the contents of this source to the given sink.
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 31 14:20:11 UTC 2024
    - 25.5K bytes
    - Viewed (0)
  4. build-logic/documentation/src/main/groovy/gradlebuild/docs/ReleaseNotesTransformer.java

     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    
    package gradlebuild.docs;
    
    import com.google.common.io.CharStreams;
    import org.gradle.api.GradleException;
    import org.gradle.api.UncheckedIOException;
    import org.jsoup.Jsoup;
    import org.jsoup.nodes.Document;
    import org.jsoup.nodes.DocumentType;
    import org.jsoup.nodes.Element;
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Thu Oct 03 05:02:20 UTC 2024
    - 9.9K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/io/CharSink.java

       *     this sink
       */
      @CanIgnoreReturnValue
      public long writeFrom(Readable readable) throws IOException {
        checkNotNull(readable);
    
        try (Writer out = openStream()) {
          return CharStreams.copy(readable, out);
        }
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 31 14:20:11 UTC 2024
    - 6.8K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/io/CharSequenceReader.java

     * but works with any {@link CharSequence}.
     *
     * @author Colin Decker
     */
    // TODO(cgdecker): make this public? as a type, or a method in CharStreams?
    @J2ktIncompatible
    @GwtIncompatible
    @ElementTypesAreNonnullByDefault
    final class CharSequenceReader extends Reader {
    
      @CheckForNull private CharSequence seq;
      private int pos;
      private int mark;
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  7. guava/src/com/google/common/io/CharSequenceReader.java

     * but works with any {@link CharSequence}.
     *
     * @author Colin Decker
     */
    // TODO(cgdecker): make this public? as a type, or a method in CharStreams?
    @J2ktIncompatible
    @GwtIncompatible
    @ElementTypesAreNonnullByDefault
    final class CharSequenceReader extends Reader {
    
      @CheckForNull private CharSequence seq;
      private int pos;
      private int mark;
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 4.5K bytes
    - Viewed (0)
Back to top