Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 129 for Readable (0.14 sec)

  1. guava/src/com/google/common/io/CharStreams.java

          Readable readable, LineProcessor<T> processor) throws IOException {
        checkNotNull(readable);
        checkNotNull(processor);
    
        LineReader lineReader = new LineReader(readable);
        String line;
        while ((line = lineReader.readLine()) != null) {
          if (!processor.processLine(line)) {
            break;
          }
        }
        return processor.getResult();
      }
    
      /**
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Jul 30 17:25:01 UTC 2025
    - 10.9K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/io/LineReader.java

              lines.add(line);
            }
          };
    
      /** Creates a new instance that will read lines from the given {@code Readable} object. */
      public LineReader(Readable readable) {
        this.readable = checkNotNull(readable);
        this.reader = (readable instanceof Reader) ? (Reader) readable : null;
      }
    
      /**
       * Reads a line of text. A line is considered to be terminated by any one of a line feed ({@code
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 3K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/io/LineBufferTest.java

          throws IOException {
        Readable readable =
            asReader ? getChunkedReader(input, chunk) : getChunkedReadable(input, chunk);
        LineReader r = new LineReader(readable);
        List<String> lines = new ArrayList<>();
        String line;
        while ((line = r.readLine()) != null) {
          lines.add(line);
        }
        return lines;
      }
    
      // Returns a Readable that is *not* a Reader.
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 4.9K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/io/LineBufferTest.java

          throws IOException {
        Readable readable =
            asReader ? getChunkedReader(input, chunk) : getChunkedReadable(input, chunk);
        LineReader r = new LineReader(readable);
        List<String> lines = new ArrayList<>();
        String line;
        while ((line = r.readLine()) != null) {
          lines.add(line);
        }
        return lines;
      }
    
      // Returns a Readable that is *not* a Reader.
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 4.9K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/base/MoreObjects.java

         * readable name.
         */
        @CanIgnoreReturnValue
        public ToStringHelper addValue(@Nullable Object value) {
          return addHolder(value);
        }
    
        /**
         * Adds an unnamed value to the formatted output.
         *
         * <p>It is strongly encouraged to use {@link #add(String, boolean)} instead and give value a
         * readable name.
         *
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Mar 17 20:26:29 UTC 2025
    - 16.1K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/io/CharSink.java

       * Writes all the text from the given {@link Readable} (such as a {@link Reader}) to this sink.
       * Does not close {@code readable} if it is {@code Closeable}.
       *
       * @return the number of characters written
       * @throws IOException if an I/O error occurs while reading from {@code readable} or writing to
       *     this sink
       */
      @CanIgnoreReturnValue
      public long writeFrom(Readable readable) throws IOException {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Apr 14 16:07:06 UTC 2025
    - 6.7K bytes
    - Viewed (0)
  7. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/cache/DiskLruCache.kt

        }
    
        entry.currentEditor = null
        if (entry.zombie) {
          removeEntry(entry)
          return
        }
    
        redundantOpCount++
        journalWriter!!.apply {
          if (entry.readable || success) {
            entry.readable = true
            writeUtf8(CLEAN).writeByte(' '.code)
            writeUtf8(entry.key)
            entry.writeLengths(this)
            writeByte('\n'.code)
            if (success) {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed May 28 23:28:25 UTC 2025
    - 34.7K bytes
    - Viewed (0)
  8. android/guava-tests/benchmark/com/google/common/io/CharStreamsCopyBenchmark.java

              ((Buffer) buf).clear();
            }
            return total;
          }
        },
        NEW {
          @Override
          long copy(Readable from, Appendable to) throws IOException {
            return CharStreams.copy(from, to);
          }
        };
    
        abstract long copy(Readable from, Appendable to) throws IOException;
      }
    
      enum TargetSupplier {
        STRING_WRITER {
          @Override
          Appendable get(int sz) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 3.2K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/core/beans/impl/PropertyDescImpl.java

        public void setField(final Field field) {
            this.field = field;
            if (field != null && ModifierUtil.isPublic(field)) {
                readable = true;
                writable = true;
            }
        }
    
        @Override
        public boolean isReadable() {
            return readable;
        }
    
        @Override
        public boolean isWritable() {
            return writable;
        }
    
        @Override
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Thu Jul 24 01:52:43 UTC 2025
    - 15.1K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/io/CharStreamsTest.java

            a.append(c);
            return this;
          }
        };
      }
    
      /** Wrap a readable in a readable to defeat any type specific optimizations. */
      private static Readable wrapAsGenericReadable(Readable a) {
        return new Readable() {
          @Override
          public int read(CharBuffer cb) throws IOException {
            return a.read(cb);
          }
        };
      }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 11.3K bytes
    - Viewed (0)
Back to top