Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for newEncoder (0.13 sec)

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

        setDefault(String.class, "abcd");
        setDefault(Method.class, AbstractPackageSanityTests.class.getDeclaredMethods()[0]);
        setDefault(MapMode.class, MapMode.READ_ONLY);
        setDefault(CharsetEncoder.class, UTF_8.newEncoder());
      }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 1.4K bytes
    - Viewed (0)
  2. android/guava-tests/benchmark/com/google/common/io/ByteSourceAsCharSourceReadBenchmark.java

              // or we could avoid inputstreamreader and use the decoder api directly
              // TODO(lukes): in a real implementation we would need to handle overflow conditions
              int maxChars = (int) (size.get().intValue() * cs.newDecoder().maxCharsPerByte());
              char[] buffer = new char[maxChars];
              int bufIndex = 0;
              int remaining = buffer.length;
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 5.2K bytes
    - Viewed (0)
Back to top