- Sort Score
- Result 10 results
- Languages All
Results 81 - 90 of 336 for getBytes (0.08 sec)
-
fess-crawler/src/test/java/org/codelibs/fess/crawler/transformer/impl/XmlTransformerTest.java
+ "</doc>"; final AccessResultDataImpl accessResultDataImpl = new AccessResultDataImpl(); accessResultDataImpl.setData(value.getBytes(Constants.UTF_8)); accessResultDataImpl.setEncoding(Constants.UTF_8); accessResultDataImpl.setTransformerName("xmlTransformer"); final Object obj = xmlTransformer.getData(accessResultDataImpl);Registered: Sat Dec 20 11:21:39 UTC 2025 - Last Modified: Sat Mar 15 06:52:00 UTC 2025 - 13.5K bytes - Viewed (0) -
guava-tests/test/com/google/common/io/SourceSinkFactories.java
@Override public CharSource createSource(String string) throws IOException { return factory.createSource(string.getBytes(UTF_8)).asCharSource(UTF_8); } @Override public String getExpected(String data) { return new String(factory.getExpected(data.getBytes(UTF_8)), UTF_8); } @Override public void tearDown() throws IOException { factory.tearDown();Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Wed Jul 16 17:42:14 UTC 2025 - 17.9K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/ServerMessageBlockTest.java
byte[] buffer = "Test\0Other".getBytes(); assertEquals(4, testBlock.readStringLength(buffer, 0, 10)); } @Test @DisplayName("Test read string length without termination throws exception") void testReadStringLengthNoTermination() { byte[] buffer = "TestTest".getBytes(); assertThrows(RuntimeCIFSException.class, () -> {
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 36.2K bytes - Viewed (0) -
src/main/java/jcifs/smb1/ntlmssp/Type1Message.java
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 7.9K bytes - Viewed (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);Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 24.1K bytes - Viewed (0) -
src/test/java/jcifs/pac/kerberos/KerberosAuthDataTest.java
*/ @Test void testParseAuthDataPacWithInvalidToken() { // GIVEN an invalid token for AUTH_DATA_PAC byte[] invalidToken = "invalid-pac-token".getBytes(); // WHEN parsing the auth data // THEN a PACDecodingException should be thrown assertThrows(PACDecodingException.class, () -> {Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 2.7K bytes - Viewed (0) -
src/test/java/org/codelibs/core/io/InputStreamUtilTest.java
final InputStream is = ResourceUtil.getResourceAsStream(StringUtil.replace(getClass().getName(), ".", "/") + ".class"); try { assertNotNull("1", InputStreamUtil.getBytes(is)); } finally { is.close(); } }
Registered: Sat Dec 20 08:55:33 UTC 2025 - Last Modified: Sat May 10 01:32:17 UTC 2025 - 1.2K bytes - Viewed (0) -
src/main/java/jcifs/internal/fscc/FsctlPipeWaitRequest.java
/** * Constructs a pipe wait request without timeout. * * @param name the pipe name to wait for */ public FsctlPipeWaitRequest(final String name) { this.nameBytes = name.getBytes(StandardCharsets.UTF_16LE); this.timeoutSpecified = false; this.timeout = 0; } /** * Constructs a pipe wait request with timeout. * * @param name the pipe name to wait forRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 2.8K bytes - Viewed (0) -
src/test/java/jcifs/smb1/util/Base64Test.java
return Stream.of(Arguments.of(new byte[0], ""), Arguments.of(new byte[] { (byte) 0x41 }, "QQ=="), // "A" Arguments.of(new byte[] { (byte) 0x41, (byte) 0x42 }, "QUI="), // "AB" Arguments.of("Man".getBytes(), "TWFu"), // 3 bytes, no padding Arguments.of(new byte[] { (byte) 0x00, (byte) 0x00, (byte) 0x00 }, "AAAA"), // all zeros
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 3K bytes - Viewed (0) -
src/test/java/org/codelibs/core/io/CopyUtilTest.java
} /** * @throws Exception */ @Test public void testFileToFile() throws Exception { int result = copy(inputFile, outputFile); assertThat(result, is(urlString.getBytes("UTF-8").length)); result = copy(outputFile, "UTF-8", writer); assertThat(writer.toString(), is(urlString)); } /** * @throws Exception */ @TestRegistered: Sat Dec 20 08:55:33 UTC 2025 - Last Modified: Sat May 10 01:32:17 UTC 2025 - 4.6K bytes - Viewed (0)