Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 425 for charset (0.44 sec)

  1. android/guava/src/com/google/common/base/Charsets.java

       * java.nio.charset.StandardCharsets#UTF_16} instead.
       *
       */
      @J2ktIncompatible
      @GwtIncompatible // Charset not supported by GWT
      public static final Charset UTF_16 = Charset.forName("UTF-16");
    
      /*
       * Please do not add new Charset references to this class, unless those character encodings are
       * part of the set required to be supported by all Java platform implementations! Any Charsets
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 15 16:12:13 GMT 2024
    - 3.8K bytes
    - Viewed (0)
  2. guava/src/com/google/common/base/Charsets.java

       * java.nio.charset.StandardCharsets#UTF_16} instead.
       *
       */
      @J2ktIncompatible
      @GwtIncompatible // Charset not supported by GWT
      public static final Charset UTF_16 = Charset.forName("UTF-16");
    
      /*
       * Please do not add new Charset references to this class, unless those character encodings are
       * part of the set required to be supported by all Java platform implementations! Any Charsets
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 15 16:12:13 GMT 2024
    - 3.8K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/base/CharsetsTest.java

      @GwtIncompatible // Non-UTF-8 Charset
      public void testIso88591() {
        assertEquals(Charset.forName("ISO-8859-1"), Charsets.ISO_8859_1);
      }
    
      public void testUtf8() {
        assertEquals(Charset.forName("UTF-8"), Charsets.UTF_8);
      }
    
      @J2ktIncompatible
      @GwtIncompatible // Non-UTF-8 Charset
      public void testUtf16be() {
        assertEquals(Charset.forName("UTF-16BE"), Charsets.UTF_16BE);
      }
    
      @J2ktIncompatible
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu May 04 09:41:29 GMT 2023
    - 2.5K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/hash/FunnelsTest.java

      }
    
      public void testForStringsCharset() {
        for (Charset charset : Charset.availableCharsets().values()) {
          PrimitiveSink primitiveSink = mock(PrimitiveSink.class);
          Funnels.stringFunnel(charset).funnel("test", primitiveSink);
          verify(primitiveSink).putString("test", charset);
        }
      }
    
      public void testForStringsCharset_null() {
        for (Charset charset : Charset.availableCharsets().values()) {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Fri Oct 02 16:24:50 GMT 2020
    - 5.9K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/hash/Funnels.java

       * {@code Charset}.
       *
       * @since 15.0
       */
      public static Funnel<CharSequence> stringFunnel(Charset charset) {
        return new StringCharsetFunnel(charset);
      }
    
      private static class StringCharsetFunnel implements Funnel<CharSequence>, Serializable {
        private final Charset charset;
    
        StringCharsetFunnel(Charset charset) {
          this.charset = Preconditions.checkNotNull(charset);
        }
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed May 25 20:32:46 GMT 2022
    - 7.3K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/io/ByteSink.java

        }
      }
    
      /**
       * A char sink that encodes written characters with a charset and writes resulting bytes to this
       * byte sink.
       */
      private final class AsCharSink extends CharSink {
    
        private final Charset charset;
    
        private AsCharSink(Charset charset) {
          this.charset = checkNotNull(charset);
        }
    
        @Override
        public Writer openStream() throws IOException {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Feb 28 20:13:02 GMT 2023
    - 5.5K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/io/CharSource.java

      }
    
      /** A byte source that reads chars from this source and encodes them as bytes using a charset. */
      private final class AsByteSource extends ByteSource {
    
        final Charset charset;
    
        AsByteSource(Charset charset) {
          this.charset = checkNotNull(charset);
        }
    
        @Override
        public CharSource asCharSource(Charset charset) {
          if (charset.equals(this.charset)) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed May 17 14:35:11 GMT 2023
    - 22.4K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/io/Resources.java

       * @param url the URL to read from
       * @param charset the charset used to decode the input stream; see {@link Charsets} for helpful
       *     predefined constants
       * @return a string containing all the characters from the URL
       * @throws IOException if an I/O error occurs.
       */
      public static String toString(URL url, Charset charset) throws IOException {
        return asCharSource(url, charset).read();
      }
    
      /**
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Feb 28 20:13:02 GMT 2023
    - 7.4K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/io/ByteSource.java

       */
      class AsCharSource extends CharSource {
    
        final Charset charset;
    
        AsCharSource(Charset charset) {
          this.charset = checkNotNull(charset);
        }
    
        @Override
        public ByteSource asByteSource(Charset charset) {
          if (charset.equals(this.charset)) {
            return ByteSource.this;
          }
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed May 17 14:35:11 GMT 2023
    - 26.2K bytes
    - Viewed (0)
  10. build-logic/documentation/src/main/groovy/gradlebuild/docs/RenderMarkdown.java

            HtmlRenderer renderer = HtmlRenderer.builder(options).build();
            File markdownFile = getMarkdownFile().get().getAsFile();
            Charset inputEncoding = Charset.forName(getInputEncoding().get());
    
            File destination = getDestinationFile().get().getAsFile();
            Charset outputEncoding = Charset.forName(getOutputEncoding().get());
    Java
    - Registered: Wed May 01 11:36:15 GMT 2024
    - Last Modified: Wed Dec 09 08:14:05 GMT 2020
    - 3.2K bytes
    - Viewed (0)
Back to top