Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 101 - 110 of 182 for UTF_8 (0.02 seconds)

  1. src/main/java/org/codelibs/fess/job/IndexExportJob.java

                    logger.warn("Symlink traversal detected: url={}, realParent={}, realBase={}", url, realParent, realBase);
                    return;
                }
                final byte[] bytes = content.getBytes(StandardCharsets.UTF_8);
                try (OutputStream out = Files.newOutputStream(filePath, StandardOpenOption.CREATE, StandardOpenOption.TRUNCATE_EXISTING,
                        LinkOption.NOFOLLOW_LINKS)) {
                    out.write(bytes);
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Mar 26 02:24:08 GMT 2026
    - 10.8K bytes
    - Click Count (0)
  2. okhttp/src/jvmTest/kotlin/okhttp3/ResponseBodyJvmTest.kt

        assertThat(bytes[0] and 0xff).isEqualTo(0xef)
        assertThat(bytes[1] and 0xff).isEqualTo(0xbb)
        assertThat(bytes[2] and 0xff).isEqualTo(0xbf)
        assertThat(String(bytes, 3, 5, StandardCharsets.UTF_8)).isEqualTo("hello")
      }
    
      @Test
      fun bytesClosesUnderlyingSource() {
        val closed = AtomicBoolean()
        val body: ResponseBody =
          object : ResponseBody() {
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Wed Mar 19 19:25:20 GMT 2025
    - 12.4K bytes
    - Click Count (0)
  3. compat/maven-compat/src/test/java/org/apache/maven/repository/legacy/StringWagon.java

                resource.setContentLength(content.length());
                resource.setLastModified(System.currentTimeMillis());
    
                inputData.setInputStream(new ByteArrayInputStream(content.getBytes(StandardCharsets.UTF_8)));
            } else {
                throw new ResourceDoesNotExistException("No content provided for " + resource.getName());
            }
        }
    
        @Override
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Fri Oct 25 12:31:46 GMT 2024
    - 3K bytes
    - Click Count (0)
  4. .teamcity/scripts/CheckRemoteProjectRef.java

        }
    
        private static Map<String, String> readProperties(Path file) throws IOException {
            Map<String, String> out = new LinkedHashMap<>();
            List<String> lines = Files.readAllLines(file, StandardCharsets.UTF_8);
            for (String line : lines) {
                String trimmed = line.trim();
                if (trimmed.isEmpty() || trimmed.startsWith("#") || trimmed.startsWith("!")) {
                    continue;
                }
    Created: Wed Apr 01 11:36:16 GMT 2026
    - Last Modified: Tue Jan 20 03:53:25 GMT 2026
    - 3.4K bytes
    - Click Count (0)
  5. src/test/java/org/codelibs/fess/dict/synonym/SynonymFileTest.java

            file1 = File.createTempFile("synonym", ".txt");
            FileUtil.writeBytes(file1.getAbsolutePath(),
                    "a1=>A1\nb1,b2 => B1\nc1 => C1, C2\nx1,X1\ny1, Y1, y2"
                            .getBytes(Constants.UTF_8));
            // TODO set up opensearch and dictionaryManager
            synonymFile = new SynonymFile("1", file1.getAbsolutePath(), new Date());
        }
    
        @Override
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Wed Jan 14 14:29:07 GMT 2026
    - 9.2K bytes
    - Click Count (0)
  6. okcurl/build.gradle.kts

        from("src/main/resources-templates")
        into(layout.buildDirectory.dir("generated/resources-templates"))
        expand("projectVersion" to "${project.version}")
        filteringCharset = Charsets.UTF_8.toString()
      }
    
    configure<JavaPluginExtension> {
      sourceSets.getByName("main").resources.srcDir(copyResourcesTemplates.get().outputs)
    }
    
    dependencies {
      api(projects.okhttp)
      api(projects.loggingInterceptor)
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Thu Feb 05 09:17:33 GMT 2026
    - 2.4K bytes
    - Click Count (0)
  7. build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/precommit/UpdateShasTask.java

            logger.lifecycle("Adding sha for " + jarName);
    
            String sha = parentTask.get().getSha1(dependency);
    
            Files.write(shaFile.toPath(), sha.getBytes(StandardCharsets.UTF_8), StandardOpenOption.CREATE);
        }
    
        @Internal
        public DependencyLicensesTask getParentTask() {
            return parentTask.get();
        }
    
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Tue Jun 01 09:19:30 GMT 2021
    - 2.6K bytes
    - Click Count (0)
  8. android/guava-tests/test/com/google/common/base/CharsetsTest.java

      @GwtIncompatible // Non-UTF-8 Charset
      public void testIso88591() {
        assertThat(Charsets.ISO_8859_1).isEqualTo(Charset.forName("ISO-8859-1"));
      }
    
      public void testUtf8() {
        assertThat(Charsets.UTF_8).isEqualTo(Charset.forName("UTF-8"));
      }
    
      @J2ktIncompatible
      @GwtIncompatible // Non-UTF-8 Charset
      public void testUtf16be() {
        assertThat(Charsets.UTF_16BE).isEqualTo(Charset.forName("UTF-16BE"));
      }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 12:37:39 GMT 2026
    - 2.6K bytes
    - Click Count (0)
  9. okhttp/src/androidMain/kotlin/okhttp3/internal/platform/android/AndroidSocketAdapter.kt

        if (!matchesSocket(sslSocket)) {
          return null
        }
    
        return try {
          val alpnResult = getAlpnSelectedProtocol.invoke(sslSocket) as ByteArray?
          alpnResult?.toString(Charsets.UTF_8)
        } catch (e: IllegalAccessException) {
          throw AssertionError(e)
        } catch (e: InvocationTargetException) {
          // https://github.com/square/okhttp/issues/5587
          val cause = e.cause
          when {
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Wed Mar 19 19:25:20 GMT 2025
    - 4.6K bytes
    - Click Count (0)
  10. fess-crawler/src/main/java/org/codelibs/fess/crawler/client/http/form/Hc5FormScheme.java

                    if (!responseParams.isEmpty()) {
                        buf.append('&');
                        final Charset charset = encoding != null ? Charset.forName(encoding) : StandardCharsets.UTF_8;
                        responseParams.stream().forEach(p -> {
                            buf.append(URLEncoder.encode(p.getFirst(), charset));
                            buf.append('=');
    Created: Sun Apr 12 03:50:13 GMT 2026
    - Last Modified: Sun Jan 04 13:09:59 GMT 2026
    - 15.1K bytes
    - Click Count (0)
Back to Top