- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 21 for getFileId (0.49 sec)
-
src/test/java/jcifs/smb/SmbFileOutputStreamTest.java
when(mockTreeHandle.getSendBufferSize()).thenReturn(65536); when(mockFileHandle.isValid()).thenReturn(false, true); // First false to trigger ensureOpen, then true when(mockFileHandle.getFileId()).thenReturn(new byte[16]); when(mockFileHandle.acquire()).thenReturn(mockFileHandle); // Mock for ensureOpen to reopen file
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 15.8K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/create/Smb2CloseResponseTest.java
assertEquals(response.getFileAttributes(), response.getAttributes()); } @Test @DisplayName("getFileId should return the file ID passed in constructor") void testGetFileId() { assertArrayEquals(testFileId, response.getFileId()); } @Test @DisplayName("getFileName should return the file name passed in constructor")
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 26.9K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/create/Smb2CloseRequestTest.java
Configuration responseConfig = (Configuration) configField.get(response); assertEquals(mockConfig, responseConfig); // Verify response has correct fileId assertEquals(testFileId, response.getFileId()); // Verify response has correct fileName assertEquals(testFileName, response.getFileName()); } @Test @DisplayName("size should return correct message size")
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 20.5K bytes - Viewed (0) -
src/main/java/jcifs/smb/SmbCopyUtil.java
} if (dh.isSMB2()) { final Smb2SetInfoRequest req = new Smb2SetInfoRequest(dh.getConfig(), dfd.getFileId()); req.setFileInformation(new FileBasicInfo(ctime, atime, mtime, 0L, attrs)); dh.send(req); } else if (dh.hasCapability(SmbConstants.CAP_NT_SMBS)) {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 16.6K bytes - Viewed (0) -
src/main/java/jcifs/smb/SmbRandomAccessFile.java
do { r = len > this.readSize ? this.readSize : len; if (th.isSMB2()) { final Smb2ReadRequest request = new Smb2ReadRequest(th.getConfig(), fh.getFileId(), b, off); request.setOffset(this.fp); request.setReadLength(r); request.setRemainingBytes(len - off); try {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 18.8K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/RequestWithFileIdTest.java
@Override public void setFileId(byte[] fileId) { this.fileId = fileId; this.setCount++; } public byte[] getFileId() { return fileId; } public int getSetCount() { return setCount; } } // When
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.9K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/ioctl/Smb2IoctlResponseTest.java
resp.decode(packet, 0); assertEquals(Smb2IoctlRequest.FSCTL_SRV_COPYCHUNK, resp.getCtlCode()); assertEquals(0x1234, resp.getIoctlFlags()); assertNotNull(resp.getFileId()); assertEquals(16, resp.getFileId().length); assertEquals(12, resp.getOutputLength()); SrvCopyChunkCopyResponse od = resp.getOutputData(SrvCopyChunkCopyResponse.class); assertEquals(1, od.getChunksWritten());
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 10.9K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/persistent/PersistentHandleManager.java
* @return the file ID if available, null otherwise */ public byte[] getExistingHandle(String path) { HandleInfo info = getHandleForReconnect(path); return info != null ? info.getFileId() : null; } /** * Store handle information after successful create * @param path the file path * @param fileId the 16-byte file ID * @param guid the handle GUID */
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 24 00:49:49 UTC 2025 - 13K bytes - Viewed (0) -
src/main/java/jcifs/smb/SmbFileOutputStream.java
if (!append && this.smb2) { // no open option for truncating, need to truncate the file final Smb2SetInfoRequest treq = new Smb2SetInfoRequest(th.getConfig(), fh.getFileId()); treq.setFileInformation(new FileEndOfFileInformation(0)); th.send(treq, RequestParam.NO_RETRY); } } } catch (final CIFSException e) {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 12.8K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbWatchHandleImplTest.java
when(handle.getTree()).thenReturn(tree); when(tree.isSMB2()).thenReturn(true); when(tree.getConfig()).thenReturn(mock(Configuration.class)); when(handle.getFileId()).thenReturn(fileId); when(tree.send(any(CommonServerMessageBlockRequest.class), any(), any(), any())).thenReturn(resp); } // Prepare SMB1 flow with a given response
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.5K bytes - Viewed (0)