Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for CharSequenceReader (0.24 sec)

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

    @J2ktIncompatible
    @GwtIncompatible
    @ElementTypesAreNonnullByDefault
    final class CharSequenceReader extends Reader {
    
      @CheckForNull private CharSequence seq;
      private int pos;
      private int mark;
    
      /** Creates a new reader wrapping the given character sequence. */
      public CharSequenceReader(CharSequence seq) {
        this.seq = checkNotNull(seq);
      }
    
      private void checkOpen() throws IOException {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  2. guava/src/com/google/common/io/CharSequenceReader.java

    @J2ktIncompatible
    @GwtIncompatible
    @ElementTypesAreNonnullByDefault
    final class CharSequenceReader extends Reader {
    
      @CheckForNull private CharSequence seq;
      private int pos;
      private int mark;
    
      /** Creates a new reader wrapping the given character sequence. */
      public CharSequenceReader(CharSequence seq) {
        this.seq = checkNotNull(seq);
      }
    
      private void checkOpen() throws IOException {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/io/CharSequenceReaderTest.java

                + "0123456789\r\n"
                + "!@#$%^&*()-=_+\t[]{};':\",./<>?\\| ");
      }
    
      public void testMarkAndReset() throws IOException {
        String string = "abcdefghijklmnopqrstuvwxyz";
        CharSequenceReader reader = new CharSequenceReader(string);
        assertTrue(reader.markSupported());
    
        assertEquals(string, readFully(reader));
        assertFullyRead(reader);
    
        // reset and read again
        reader.reset();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 6.5K bytes
    - Viewed (0)
  4. guava/src/com/google/common/io/CharSource.java

        protected CharSequenceCharSource(CharSequence seq) {
          this.seq = checkNotNull(seq);
        }
    
        @Override
        public Reader openStream() {
          return new CharSequenceReader(seq);
        }
    
        @Override
        public String read() {
          return seq.toString();
        }
    
        @Override
        public boolean isEmpty() {
          return seq.length() == 0;
        }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 31 14:20:11 UTC 2024
    - 25.5K bytes
    - Viewed (0)
Back to top