Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 476 for Charsets (0.1 sec)

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

          imports = "com.google.common.io.Files")
      public
      static void copy(File from, Charset charset, Appendable to) throws IOException {
        asCharSource(from, charset).copyTo(to);
      }
    
      /**
       * Appends a character sequence (such as a string) to a file using the given character set.
       *
       * @param from the character sequence to append
       * @param to the destination file
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Jul 22 19:03:12 UTC 2024
    - 33.1K bytes
    - Viewed (0)
  2. okhttp/src/test/java/okhttp3/MediaTypeTest.kt

        val mediaType = parse("text/plain; charset=utf-8; charset=UTF-8")
        assertEquals("UTF-8", mediaType.charsetName())
      }
    
      @Test fun testMultipleCharsetsReturnsFirstMatch() {
        val mediaType = parse("text/plain; charset=utf-8; charset=utf-16")
        assertEquals("UTF-8", mediaType.charsetName())
      }
    
      /**
       * This is invalid according to RFC 822. But it's what Chrome does and it avoids a potentially
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 7.5K bytes
    - Viewed (0)
  3. okhttp/src/main/kotlin/okhttp3/ResponseBody.kt

      fun string(): String =
        source().use { source ->
          source.readString(charset = source.readBomAsCharset(charset()))
        }
    
      private fun charset() = contentType().charsetOrUtf8()
    
      override fun close() = commonClose()
    
      internal class BomAwareReader(
        private val source: BufferedSource,
        private val charset: Charset,
      ) : Reader() {
        private var closed: Boolean = false
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 10.7K bytes
    - Viewed (0)
  4. api/maven-api-core/src/main/java/org/apache/maven/api/services/Transport.java

     * specific language governing permissions and limitations
     * under the License.
     */
    package org.apache.maven.api.services;
    
    import java.io.Closeable;
    import java.net.URI;
    import java.nio.charset.Charset;
    import java.nio.charset.StandardCharsets;
    import java.nio.file.Path;
    import java.util.Optional;
    
    import org.apache.maven.api.RemoteRepository;
    import org.apache.maven.api.annotations.Consumer;
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Thu Mar 23 05:29:39 UTC 2023
    - 4.4K bytes
    - Viewed (0)
  5. guava/src/com/google/common/hash/Murmur3_32HashFunction.java

          k1 = mixK1(k1);
          h1 ^= k1;
        }
    
        return fmix(h1, Chars.BYTES * input.length());
      }
    
      @Override
      public HashCode hashString(CharSequence input, Charset charset) {
        if (UTF_8.equals(charset)) {
          int utf16Length = input.length();
          int h1 = seed;
          int i = 0;
          int len = 0;
    
          // This loop optimizes for pure ASCII.
          while (i + 4 <= utf16Length) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Aug 02 13:50:22 UTC 2024
    - 11.8K bytes
    - Viewed (0)
  6. guava/src/com/google/common/net/MediaType.java

       * charset} parameter set to the {@link Charset#name name} of the given charset. Only one {@code
       * charset} parameter will be present on the new instance regardless of the number set on this
       * one.
       *
       * <p>If a charset must be specified that is not supported on this JVM (and thus is not
       * representable as a {@link Charset} instance), use {@link #withParameter}.
       */
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Sep 26 19:15:09 UTC 2024
    - 47.5K bytes
    - Viewed (0)
  7. src/main/java/jcifs/util/Strings.java

    import java.io.UnsupportedEncodingException;
    import java.nio.charset.Charset;
    
    import org.slf4j.Logger;
    import org.slf4j.LoggerFactory;
    
    import jcifs.Configuration;
    import jcifs.RuntimeCIFSException;
    
    
    /**
     * @author mbechler
     *
     */
    public final class Strings {
    
        private static final Logger log = LoggerFactory.getLogger(Strings.class);
    
        private static final Charset UNI_ENCODING = Charset.forName("UTF-16LE");
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Mon Mar 13 12:00:57 UTC 2023
    - 4.9K bytes
    - Viewed (0)
  8. guava/src/com/google/common/io/CharSource.java

      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)) {
            return CharSource.this;
          }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 31 14:20:11 UTC 2024
    - 25.5K bytes
    - Viewed (0)
  9. fess-crawler/src/main/java/org/codelibs/fess/crawler/client/fs/FileSystemClient.java

        }
    
        public void setCharset(final String charset) {
            this.charset = charset;
        }
    
        /*
         * (non-Javadoc)
         *
         * @see org.codelibs.fess.crawler.client.CrawlerClient#doHead(java.lang.String)
         */
        @Override
        public ResponseData doHead(final String url) {
            try {
                final ResponseData responseData = processRequest(url, false);
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:47:32 UTC 2024
    - 11.8K bytes
    - Viewed (0)
  10. okhttp/src/test/java/okhttp3/ResponseBodyJvmTest.kt

        val body = text.toResponseBody("text/plain; charset=unknown".toMediaType())
        assertThat(body.string()).isEqualTo(text)
      }
    
      companion object {
        @JvmOverloads
        fun body(
          hex: String,
          charset: String? = null,
        ): ResponseBody {
          val mediaType = if (charset == null) null else "any/thing; charset=$charset".toMediaType()
          return hex.decodeHex().toResponseBody(mediaType)
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon May 13 13:42:37 UTC 2024
    - 13K bytes
    - Viewed (0)
Back to top