- Sort Score
- Result 10 results
- Languages All
Results 131 - 140 of 463 for GetBytes (0.43 sec)
-
platforms/jvm/language-jvm/src/integTest/groovy/org/gradle/api/tasks/bundling/JarEncodingIntegrationTest.groovy
} """.stripIndent() createDir('test') { file 'mojibak€.txt' } assert new String('mojibak€.txt').getBytes('ISO-8859-15') != new String('mojibak€.txt').getBytes('UTF-8') when: succeeds 'jar' then: def jar = new JarTestFixture(file('dest/test.jar'), 'ISO-8859-15') jar.assertContainsFile('mojibak€.txt')
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Sep 28 12:15:28 UTC 2023 - 10.5K bytes - Viewed (0) -
android/guava/src/com/google/common/hash/AbstractNonStreamingHashFunction.java
buffer.putChar(input.charAt(i)); } return hashBytes(buffer.array()); } @Override public HashCode hashString(CharSequence input, Charset charset) { return hashBytes(input.toString().getBytes(charset)); } @Override public abstract HashCode hashBytes(byte[] input, int off, int len); @Override public HashCode hashBytes(ByteBuffer input) {
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Tue Apr 20 18:43:59 UTC 2021 - 3.8K bytes - Viewed (0) -
platforms/core-runtime/process-services/src/main/java/org/gradle/process/internal/health/memory/MemoryAmount.java
private MemoryAmount(long bytes, String notation) { Preconditions.checkArgument(bytes > 0, "bytes must be positive"); this.bytes = bytes; this.notation = notation; } public long getBytes() { return bytes; } @Override public String toString() { return notation; } @Override public boolean equals(Object o) { if (this == o) {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 22 09:10:02 UTC 2023 - 4.1K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/dict/synonym/SynonymFileTest.java
super.setUp(); 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
Registered: Wed Jun 12 13:08:18 UTC 2024 - Last Modified: Thu Feb 22 01:37:57 UTC 2024 - 9K bytes - Viewed (0) -
src/main/java/org/codelibs/core/security/MessageDigestUtil.java
if (text == null) { return null; } final MessageDigest msgDigest = getInstance(algorithm); try { msgDigest.update(text.getBytes("UTF-8")); } catch (final UnsupportedEncodingException e) { throw new ClIllegalStateException(e); } final byte[] digest = msgDigest.digest();
Registered: Wed Jun 12 12:50:12 UTC 2024 - Last Modified: Thu Mar 07 01:59:08 UTC 2024 - 3.1K bytes - Viewed (0) -
testing/internal-performance-testing/src/main/groovy/org/gradle/performance/results/PerformanceTestRuntimesGenerator.java
.collect(Collectors.toList()); new ObjectMapper().writerWithDefaultPrettyPrinter() .writeValue(runtimesFile, json); Files.write(runtimesFile.toPath(), "\n".getBytes(StandardCharsets.UTF_8), StandardOpenOption.APPEND); } }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 04 07:21:38 UTC 2024 - 5.2K bytes - Viewed (0) -
src/main/java/jcifs/smb1/smb1/NetServerEnum2.java
Registered: Wed Jun 12 15:45:55 UTC 2024 - Last Modified: Fri Mar 22 21:10:40 UTC 2019 - 3.5K bytes - Viewed (0) -
platforms/core-runtime/wrapper-shared/src/integTest/groovy/org/gradle/integtests/PathTraversalCheckerIntegrationTest.groovy
def setup() { evilZip.withOutputStream { new ZipOutputStream(it).withCloseable { ZipOutputStream zos -> zos.putNextEntry(new ZipEntry('../../tmp/evil.sh')) zos.write("evil".getBytes('utf-8')) zos.closeEntry() } } } def "evil.zip has path traversal"() { given: def entryNames = new ZipFile(evilZip).withCloseable {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 22 09:12:34 UTC 2023 - 4K bytes - Viewed (0) -
subprojects/core-api/src/main/java/org/gradle/api/internal/cache/CacheDirUtil.java
"# For information about cache directory tags, see:\n" + "#\thttps://bford.info/cachedir/" ).getBytes("UTF-8") ); } finally { // stream close is done here so if it throws, we can re-use the outer catch block stream.close(); }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Jan 25 20:35:25 UTC 2023 - 3.1K bytes - Viewed (0) -
android/guava/src/com/google/common/hash/AbstractHasher.java
} return this; } @Override @CanIgnoreReturnValue public Hasher putString(CharSequence charSequence, Charset charset) { return putBytes(charSequence.toString().getBytes(charset)); } @Override @CanIgnoreReturnValue public Hasher putBytes(byte[] bytes) { return putBytes(bytes, 0, bytes.length); } @Override @CanIgnoreReturnValue
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Wed Jun 15 20:59:00 UTC 2022 - 3.5K bytes - Viewed (0)