- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 35 for SmbTreeHandleImpl (0.07 sec)
-
src/main/java/jcifs/smb/SmbPipeInputStream.java
super(handle.getPipe(), th, null); this.handle = handle; } /** * Ensures that the tree connection is established. * * @return the tree handle implementation * @throws CIFSException if a connection error occurs */ protected synchronized SmbTreeHandleImpl ensureTreeConnected() throws CIFSException {
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 3.8K bytes - Viewed (0) -
src/main/java/jcifs/smb/SmbEnumerationUtil.java
if (rpc.retval != 0) { throw new SmbException(rpc.retval, true); } return rpc.getEntries(); } } static FileEntry[] doNetShareEnum(final SmbTreeHandleImpl th) throws CIFSException { final SmbComTransaction req = new NetShareEnum(th.getConfig()); final SmbComTransactionResponse resp = new NetShareEnumResponse(th.getConfig()); th.send(req, resp);
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 12.3K bytes - Viewed (0) -
src/main/java/jcifs/smb/SmbCopyUtil.java
* @param resp * @throws SmbException */ static void copyFile(final SmbFile src, final SmbFile dest, final byte[][] b, final int bsize, final WriterThread w, final SmbTreeHandleImpl sh, final SmbTreeHandleImpl dh) throws SmbException { if (sh.isSMB2() && dh.isSMB2() && sh.isSameTree(dh)) { try { serverSideCopy(src, dest, sh, dh, false); return;Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 16.6K bytes - Viewed (0) -
src/main/java/jcifs/smb/DirFileEntryEnumIterator1.java
private static final int FIND_OVERHEAD = 100; // plenty enough private Trans2FindNext2 nextRequest; private Trans2FindFirst2Response response; public DirFileEntryEnumIterator1(final SmbTreeHandleImpl th, final SmbResource parent, final String wildcard, final ResourceNameFilter filter, final int searchAttributes) throws CIFSException { super(th, parent, wildcard, filter, searchAttributes); }Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 5.1K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbFileTest.java
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 20.8K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbFileOutputStreamTest.java
} @Test void testConstructorWithSmbFileOnly() throws IOException, CIFSException { // Given // Mock the AutoCloseable tree handle behavior SmbTreeHandleImpl autoCloseableMockTreeHandle = mock(SmbTreeHandleImpl.class); when(mockFile.ensureTreeConnected()).thenReturn(autoCloseableMockTreeHandle); when(autoCloseableMockTreeHandle.isSMB2()).thenReturn(true);Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 15.8K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbTreeConnectionTest.java
.thenReturn(resp); setTree(c, tree); // Override connectHost to avoid actual network connection on retry doAnswer(invocation -> { SmbTreeHandleImpl handle = mock(SmbTreeHandleImpl.class); // Re-set the same tree to continue using our mock setTree(c, tree); return handle; }).when(c).connectHost(any(), anyString());
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 13K bytes - Viewed (0) -
src/main/java/jcifs/smb/SmbFile.java
if (!(d instanceof final SmbFile dest)) { throw new SmbException("Invalid target resource"); } try (SmbTreeHandleImpl sh = ensureTreeConnected(); SmbTreeHandleImpl th = dest.ensureTreeConnected()) { // this still might be required for standalone DFS if (!exists()) {
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 103.2K bytes - Viewed (0) -
src/main/java/jcifs/smb/SmbFileOutputStream.java
this.file = file; this.append = append; this.openFlags = openFlags; this.sharing = sharing; this.access = access | SmbConstants.FILE_WRITE_DATA; try (SmbTreeHandleImpl th = file.ensureTreeConnected()) { this.smb2 = th.isSMB2(); try (SmbFileHandleImpl fh = ensureOpen()) { if (append) { this.fp = fh.getInitialSize();Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 12.8K bytes - Viewed (0) -
src/main/java/jcifs/smb/DirFileEntryEnumIteratorBase.java
*/ public abstract class DirFileEntryEnumIteratorBase implements CloseableIterator<FileEntry> { private static final Logger log = LoggerFactory.getLogger(DirFileEntryEnumIteratorBase.class); private final SmbTreeHandleImpl treeHandle; private final ResourceNameFilter nameFilter; private final SmbResource parent; private final String wildcard; private final int searchAttributes; private FileEntry next;
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 7.7K bytes - Viewed (0)