- Sort Score
- Num 10 results
- Language All
Results 71 - 80 of 274 for getBytes (0.39 seconds)
The search processing time has exceeded the limit. The displayed results may be partial.
-
src/test/java/jcifs/smb1/smb1/Trans2FindFirst2ResponseTest.java
byte[] src = expected.getBytes("UTF-16LE"); String result = response.readString(src, 0, src.length); assertEquals(expected, result); } @Test void testReadString_Oem() { response.useUnicode = false; String expected = "test"; // Simulate OEM encoding with a null terminator byte[] src = (expected + "\0").getBytes(StandardCharsets.UTF_8);
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 9.3K bytes - Click Count (0) -
guava-tests/test/com/google/common/io/CharSourceTester.java
TestSuite suite = new TestSuite(name); for (Entry<String, String> entry : TEST_STRINGS.entrySet()) { if (testAsByteSource) { suite.addTest( suiteForBytes(factory, entry.getValue().getBytes(UTF_8), name, entry.getKey(), true)); } else { suite.addTest(suiteForString(factory, entry.getValue(), name, entry.getKey())); } } return suite; } static TestSuite suiteForBytes(
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Mar 12 17:47:10 GMT 2026 - 7.4K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/dict/kuromoji/KuromojiFileTest.java
FileUtil.write( file1.getAbsolutePath(), "token1,seg1,reading1,pos1\ntoken2,seg2,reading2,pos2\ntoken3,seg3,reading3,pos3" .getBytes(Constants.UTF_8)); } @Override protected void tearDown(TestInfo testInfo) throws Exception { file1.delete(); } */ @Override
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Wed Jan 14 14:29:07 GMT 2026 - 7.4K bytes - Click Count (0) -
build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/DependenciesInfoTask.java
output.append(dep.getGroup() + ":" + dep.getName() + "," + dep.getVersion() + "," + url + "," + licenseType + "\n"); } Files.write(outputFile.toPath(), output.toString().getBytes("UTF-8"), StandardOpenOption.CREATE); } @Input public LinkedHashMap<String, String> getMappings() { return mappings; }
Created: Wed Apr 08 16:19:15 GMT 2026 - Last Modified: Tue Jun 01 09:19:30 GMT 2021 - 8.6K bytes - Click Count (0) -
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) -
src/main/java/jcifs/smb1/ntlmssp/Type3Message.java
domain = unicode ? domainName.getBytes(UNI_ENCODING) : domainName.getBytes(oem); } final int domainLength = domain != null ? domain.length : 0; final String userName = getUser(); byte[] user = null; if (userName != null && userName.length() != 0) { user = unicode ? userName.getBytes(UNI_ENCODING) : userName.toUpperCase().getBytes(oem);Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 24.1K bytes - Click Count (0) -
src/test/java/jcifs/http/NtlmSspTest.java
String domain = "DOMAIN"; byte[] domainBytes = domain.getBytes(); for (int i = 0; i < domainBytes.length; i++) { message[112 + i * 2] = domainBytes[i]; message[112 + i * 2 + 1] = 0; } // Add User "user" in Unicode at offset 124 String user = "user"; byte[] userBytes = user.getBytes(); for (int i = 0; i < userBytes.length; i++) {
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 21 04:51:33 GMT 2025 - 11.4K bytes - Click Count (1) -
android/guava-tests/test/com/google/common/io/LittleEndianDataOutputStreamTest.java
DataInput in = new DataInputStream(new ByteArrayInputStream(data)); /* Read in various values NORMALLY */ byte[] b = new byte[6]; in.readFully(b); assertEquals("r\u00C9sum\u00C9".getBytes(ISO_8859_1), b); } @SuppressWarnings("deprecation") // testing a deprecated method public void testWriteBytes_discardHighOrderBytes() throws IOException {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Mar 12 17:47:10 GMT 2026 - 4.9K bytes - Click Count (0) -
guava-tests/test/com/google/common/io/LittleEndianDataOutputStreamTest.java
DataInput in = new DataInputStream(new ByteArrayInputStream(data)); /* Read in various values NORMALLY */ byte[] b = new byte[6]; in.readFully(b); assertEquals("r\u00C9sum\u00C9".getBytes(ISO_8859_1), b); } @SuppressWarnings("deprecation") // testing a deprecated method public void testWriteBytes_discardHighOrderBytes() throws IOException {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Mar 12 17:47:10 GMT 2026 - 4.9K bytes - Click Count (0) -
api/maven-api-core/src/main/java/org/apache/maven/api/services/Transport.java
* * @return the byte array if operation succeeded, {@code null} if source does not exist. * @throws RuntimeException If failed (and not due source not exists). */ @Nonnull Optional<byte[]> getBytes(@Nonnull URI relativeSource); /** * GETs the source URI content as string. The source MUST BE relative from the {@link RemoteRepository#getUrl()} * root. *Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Thu Mar 23 05:29:39 GMT 2023 - 4.4K bytes - Click Count (0)