- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 441 for getTypes (0.03 sec)
-
src/test/java/jcifs/smb/PreauthIntegrityServiceTest.java
// Simulate message exchange preauthService.updatePreauthHash(sessionId, "Message1".getBytes()); preauthService.updatePreauthHash(sessionId, "Message2".getBytes()); byte[] expectedHash = preauthService.getCurrentPreauthHash(sessionId); // Validation should pass with correct hash
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 11.1K bytes - Viewed (0) -
fess-crawler/src/main/java/org/codelibs/fess/crawler/client/smb/SmbClient.java
try (InputStream contentStream = new BufferedInputStream(new SmbFileInputStream(file))) { responseData.setResponseBody(InputStreamUtil.getBytes(contentStream)); } catch (final Exception e) { logger.warn("I/O Exception.", e);
Registered: Sun Sep 21 03:50:09 UTC 2025 - Last Modified: Thu Sep 18 09:30:45 UTC 2025 - 22.5K bytes - Viewed (0) -
src/test/java/jcifs/smb1/util/HMACT64Test.java
import org.junit.jupiter.api.Test; class HMACT64Test { private static final byte[] TEST_KEY = "testkey".getBytes(); private static final byte[] LONG_TEST_KEY = new byte[80]; // Longer than 64 bytes private static final byte[] SHORT_TEST_KEY = "short".getBytes(); private static final byte[] TEST_DATA = "testdata".getBytes(); private static final byte[] EMPTY_DATA = new byte[0]; static {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 10.1K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/SmbShareInfoTest.java
// Test with hidden flag (0x80000000) which should be ignored by getType() SmbShareInfo hiddenPrinter = new SmbShareInfo("HIDDEN_PRINTER", 1 | 0x80000000, "hidden printer"); assertEquals(SmbFile.TYPE_PRINTER, hiddenPrinter.getType()); } /** * Test of getAttributes method, of class SmbShareInfo. */ @Test void testGetAttributes() {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/net/NetShareEnumResponseTest.java
setConverter(response, 0); // Set number of entries setNumEntries(response, 1); // Write share name (13 bytes, null padded) byte[] nameBytes = shareName.getBytes(StandardCharsets.US_ASCII); System.arraycopy(nameBytes, 0, buffer, bufferIndex, Math.min(nameBytes.length, 13)); bufferIndex += 14; // Write type (2 bytes)
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 20.2K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/helper/ThemeHelperTest.java
zos.putNextEntry(viewEntry); zos.write("<html>test</html>".getBytes()); zos.closeEntry(); // Add CSS file ZipEntry cssEntry = new ZipEntry("css/style.css"); zos.putNextEntry(cssEntry); zos.write("body { color: red; }".getBytes()); zos.closeEntry(); } }
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Sat Jul 19 23:49:30 UTC 2025 - 14.5K bytes - Viewed (0) -
src/test/java/jcifs/internal/fscc/FileRenameInformation2Test.java
// Verify replaceIfExists flag assertEquals(1, buffer[0]); // Verify file name length int nameLength = SMBUtil.readInt4(buffer, 16); assertEquals(fileName.getBytes(StandardCharsets.UTF_16LE).length, nameLength); // Verify file name byte[] nameBytes = new byte[nameLength]; System.arraycopy(buffer, 20, nameBytes, 0, nameLength);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.3K bytes - Viewed (0) -
fess-crawler/src/test/java/org/codelibs/fess/crawler/extractor/impl/CommandExtractorTest.java
} File file; try { file = File.createTempFile("script", extention); file.deleteOnExit(); FileUtil.writeBytes(file.getAbsolutePath(), content.getBytes()); return file; } catch (final IOException e) { throw new IORuntimeException(e); } } private File createScriptTempFileStdout(final int sleep) {
Registered: Sun Sep 21 03:50:09 UTC 2025 - Last Modified: Sat Mar 15 06:52:00 UTC 2025 - 9.8K bytes - Viewed (0) -
src/main/java/jcifs/util/Strings.java
* @param encoding the character encoding to use * @return encoded byte array, or empty array if str is null */ public static byte[] getBytes(final String str, final Charset encoding) { if (str == null) { return new byte[0]; } return str.getBytes(encoding); } /** * Encodes a string into UTF-16LE (Unicode Little Endian) bytes. * * @param str the string to encode
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 6.5K bytes - Viewed (0) -
src/test/java/org/codelibs/curl/CurlResponseTest.java
} @Test public void testContentCache() { CurlResponse response = new CurlResponse(); byte[] data = "test content".getBytes(); ContentCache cache = new ContentCache(data); response.setContentCache(cache); // ContentCache is not directly accessible, but we can test through content methods
Registered: Thu Sep 04 15:34:10 UTC 2025 - Last Modified: Thu Jul 31 01:01:12 UTC 2025 - 11.5K bytes - Viewed (0)