Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 31 - 40 of 92 for SmbFile (0.08 seconds)

  1. src/main/java/jcifs/smb1/smb1/SmbRandomAccessFile.java

         */
        public SmbRandomAccessFile(final SmbFile file, final String mode) throws SmbException, MalformedURLException, UnknownHostException {
            this.file = file;
            if (mode.equals("r")) {
                this.openFlags = SmbFile.O_CREAT | SmbFile.O_RDONLY;
            } else if (mode.equals("rw")) {
                this.openFlags = SmbFile.O_CREAT | SmbFile.O_RDWR | SmbFile.O_APPEND;
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 14.1K bytes
    - Click Count (0)
  2. src/main/java/jcifs/smb1/smb1/TestLocking.java

        long delay = 100;
        String url = null;
        int numComplete = 0;
        long ltime = 0L;
    
        @Override
        public void run() {
            try {
                final SmbFile f = new SmbFile(url);
                final SmbFile d = new SmbFile(f.getParent());
                final byte[] buf = new byte[1024];
    
                for (int ii = 0; ii < numIter; ii++) {
    
                    synchronized (this) {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 4.2K bytes
    - Click Count (0)
  3. src/main/java/jcifs/internal/smb2/lease/DirectoryChangeNotifier.java

            if (activeWatchers.containsKey(directoryPath)) {
                return; // Already watching
            }
    
            try {
                SmbFile directory = new SmbFile(directoryPath, leaseManager.getContext());
                ChangeNotificationHandle handle = new ChangeNotificationHandle(directoryPath, leaseKey, directory);
    
                activeWatchers.put(directoryPath, handle);
    
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 13.7K bytes
    - Click Count (0)
  4. src/main/java/jcifs/smb/SmbFileOutputStream.java

         * an SMB server represented by the {@link jcifs.smb.SmbFile} parameter. See
         * {@link jcifs.smb.SmbFile} for a detailed description and examples of
         * the smb URL syntax.
         *
         * @param file
         *            An <code>SmbFile</code> specifying the file to write to
         * @throws SmbException if an SMB error occurs
         */
        public SmbFileOutputStream(final SmbFile file) throws SmbException {
            this(file, false);
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 12.8K bytes
    - Click Count (0)
  5. src/test/java/jcifs/smb/SmbFilenameFilterTest.java

     * including normal operation, null handling, edge cases, and exception flow.
     */
    @ExtendWith(MockitoExtension.class)
    class SmbFilenameFilterTest {
    
        @Mock
        SmbFile mockDir;
    
        /**
         * Happy-path: a filter that accepts any name.
         */
        @ParameterizedTest
        @DisplayName("accepts any non-null/any string")
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 7.3K bytes
    - Click Count (0)
  6. src/test/java/jcifs/internal/smb2/lease/DirectoryLeaseManagerTest.java

    import jcifs.Configuration;
    import jcifs.smb.SmbFile;
    
    /**
     * Unit tests for DirectoryLeaseManager
     */
    public class DirectoryLeaseManagerTest {
    
        @Mock
        private CIFSContext context;
    
        @Mock
        private Configuration config;
    
        @Mock
        private LeaseManager baseLeaseManager;
    
        @Mock
        private SmbFile mockFile1;
    
        @Mock
        private SmbFile mockFile2;
    
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 23 01:47:47 GMT 2025
    - 15.9K bytes
    - Click Count (0)
  7. src/test/java/jcifs/smb/SmbRandomAccessFileTest.java

            verify(fh, times(1)).close();
        }
    
        @Test
        @DisplayName("close(): clears cache and closes handle; does not close shared SmbFile")
        void close_sharedFile_closesHandle_only() throws Exception {
            SmbRandomAccessFile raf = newInstance("rw", false, true, false);
            SmbFile file = (SmbFile) getField(raf, "file");
            SmbFileHandleImpl handle = (SmbFileHandleImpl) getField(raf, "handle");
    
            // Act
    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)
  8. src/main/java/jcifs/internal/smb2/lease/LeaseManager.java

                lock.writeLock().unlock();
            }
        }
    
        /**
         * Register a file with cache for a path
         *
         * @param path file path
         * @param file SmbFile instance
         */
        public void registerFileCache(String path, SmbFile file) {
            if (file != null) {
                fileCache.put(path, new WeakReference<>(file));
            }
        }
    
        /**
         * Evict oldest leases based on LRU
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sun Aug 31 08:00:57 GMT 2025
    - 18.8K bytes
    - Click Count (0)
  9. src/main/java/jcifs/SmbConstants.java

         * represents is a server.
         */
        int TYPE_SERVER = 0x04;
        /**
         * Returned by {@link jcifs.SmbResource#getType()} if the resource this <code>SmbFile</code>
         * represents is a share.
         */
        int TYPE_SHARE = 0x08;
        /**
         * Returned by {@link jcifs.SmbResource#getType()} if the resource this <code>SmbFile</code>
         * represents is a named pipe.
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sun Aug 24 00:49:49 GMT 2025
    - 12.8K bytes
    - Click Count (0)
  10. src/main/java/jcifs/smb/NetServerFileEntryAdapterIterator.java

        }
    
        /**
         * @param fe
         * @return
         * @throws MalformedURLException
         */
        @Override
        protected SmbResource adapt(final FileEntry e) throws MalformedURLException {
            return new SmbFile(getParent(), e.getName(), false, e.getType(), SmbConstants.ATTR_READONLY | SmbConstants.ATTR_DIRECTORY, 0L, 0L,
                    0L, 0L);
        }
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 07:14:38 GMT 2025
    - 1.6K bytes
    - Click Count (0)
Back to Top