- Sort Score
- Num 10 results
- Language All
Results 11 - 17 of 17 for ensureTreeConnected (0.1 seconds)
-
src/main/java/jcifs/smb/SmbFileOutputStream.java
* * @return the tree handle * @throws CIFSException if an error occurs connecting to the tree */ protected SmbTreeHandleImpl ensureTreeConnected() throws CIFSException { return this.file.ensureTreeConnected(); } /** * Writes len bytes from the specified byte array starting at * offset off to this file output stream. * * @param bCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 12.8K bytes - Click Count (0) -
src/main/java/jcifs/smb/SmbFileDirectoryLeasingExtension.java
if (!smbFile.isDirectory()) { throw new SmbException("Not a directory: " + smbFile.getPath()); } try (SmbTreeHandleImpl th = smbFile.ensureTreeConnected()) { // Check if we can use directory leasing DirectoryLeaseManager dirManager = getDirectoryLeaseManager(th);
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 23 02:21:31 GMT 2025 - 7.1K bytes - Click Count (0) -
src/main/java/jcifs/smb/SmbEnumerationUtil.java
} throw e; } try (SmbFile browser = (SmbFile) parent.resolve(addr.getHostAddress())) { try (SmbTreeHandleImpl th = browser.ensureTreeConnected()) { if (th.isSMB2()) { throw new SmbUnsupportedOperationException(); } return new NetServerFileEntryAdapterIterator(parent,Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 07:14:38 GMT 2025 - 12.3K bytes - Click Count (0) -
src/test/java/jcifs/smb/SmbFileOutputStreamTest.java
// Given // Mock the AutoCloseable tree handle behavior SmbTreeHandleImpl autoCloseableMockTreeHandle = mock(SmbTreeHandleImpl.class); when(mockFile.ensureTreeConnected()).thenReturn(autoCloseableMockTreeHandle); when(autoCloseableMockTreeHandle.isSMB2()).thenReturn(true); lenient().when(autoCloseableMockTreeHandle.getConfig()).thenReturn(mockConfig);Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 15.8K bytes - Click Count (0) -
src/main/java/jcifs/smb/SmbFileInputStream.java
this.file = file; this.unsharedFile = unshared; this.openFlags = openFlags; this.access = access; this.sharing = sharing; try (SmbTreeHandleInternal th = file.ensureTreeConnected()) { this.smb2 = th.isSMB2(); if (file.getType() != SmbConstants.TYPE_NAMED_PIPE) { try (SmbFileHandle h = ensureOpen()) {}Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 30 05:58:03 GMT 2025 - 15.6K bytes - Click Count (0) -
src/test/java/jcifs/smb/SmbRandomAccessFileTest.java
SmbTreeHandleImpl tree = mock(SmbTreeHandleImpl.class); Configuration cfg = mock(Configuration.class); SmbFileHandleImpl fh = mock(SmbFileHandleImpl.class); when(file.ensureTreeConnected()).thenReturn(tree); when(tree.getConfig()).thenReturn(cfg); when(tree.getReceiveBufferSize()).thenReturn(1024); when(tree.getSendBufferSize()).thenReturn(1024);
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 18.1K bytes - Click Count (0) -
src/main/java/jcifs/smb/SmbRandomAccessFile.java
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 18.8K bytes - Click Count (0)