Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 34 for SmbResource (0.28 sec)

  1. src/main/java/jcifs/SmbResource.java

         */
        void copyTo ( SmbResource dest ) throws CIFSException;
    
    
        /**
         * Changes the name of the file this <code>SmbResource</code> represents to the name
         * designated by the <code>SmbResource</code> argument.
         * <br>
         * <i>Remember: <code>SmbResource</code>s are immutable and therefore
         * the path associated with this <code>SmbResource</code> object will not
    Java
    - Registered: Sun Apr 28 00:10:09 GMT 2024
    - Last Modified: Sun Dec 20 14:09:34 GMT 2020
    - 26K bytes
    - Viewed (0)
  2. src/main/java/jcifs/smb/FileEntryAdapterIterator.java

    import jcifs.ResourceFilter;
    import jcifs.SmbResource;
    
    
    abstract class FileEntryAdapterIterator implements CloseableIterator<SmbResource> {
    
        private static final Logger log = LoggerFactory.getLogger(FileEntryAdapterIterator.class);
    
        private final CloseableIterator<FileEntry> delegate;
        private final ResourceFilter filter;
        private final SmbResource parent;
        private SmbResource next;
    
    
        /**
    Java
    - Registered: Sun Apr 28 00:10:09 GMT 2024
    - Last Modified: Sun Jul 01 13:12:10 GMT 2018
    - 3.5K bytes
    - Viewed (0)
  3. src/main/java/jcifs/smb/ShareEnumIterator.java

    import jcifs.SmbConstants;
    import jcifs.SmbResource;
    
    
    class ShareEnumIterator implements CloseableIterator<SmbResource> {
    
        private static final Logger log = LoggerFactory.getLogger(ShareEnumIterator.class);
    
        private final Iterator<FileEntry> delegate;
        private final ResourceFilter filter;
        private final SmbResource parent;
        private SmbResource next;
    
    
        /**
         * @param parent
    Java
    - Registered: Sun Apr 28 00:10:09 GMT 2024
    - Last Modified: Sun Jul 01 13:12:10 GMT 2018
    - 3.5K bytes
    - Viewed (0)
  4. src/test/java/jcifs/tests/SessionTest.java

            try ( SmbResource f = new SmbFile(getTestShareURL(), ctx); ) {
                checkConnection(f);
                f.resolve("test").exists();
            }
        }
    
    
        @Test
        public void logonAnonymous () throws IOException {
            try ( SmbResource f = new SmbFile(getTestShareGuestURL(), withAnonymousCredentials()) ) {
    Java
    - Registered: Sun Apr 28 00:10:09 GMT 2024
    - Last Modified: Thu Jan 05 13:09:03 GMT 2023
    - 15.8K bytes
    - Viewed (0)
  5. src/main/java/jcifs/SmbConstants.java

         * Returned by {@link jcifs.SmbResource#getType()} if the resource this <tt>SmbFile</tt>
         * represents is a server.
         */
        static final int TYPE_SERVER = 0x04;
        /**
         * Returned by {@link jcifs.SmbResource#getType()} if the resource this <tt>SmbFile</tt>
         * represents is a share.
         */
        static final int TYPE_SHARE = 0x08;
        /**
    Java
    - Registered: Sun Apr 28 00:10:09 GMT 2024
    - Last Modified: Sun Jul 01 13:12:10 GMT 2018
    - 8.9K bytes
    - Viewed (0)
  6. src/test/java/jcifs/tests/FileLocationTest.java

            }
        }
    
    
        // #41
        @Test
        public void testGetNameServer () throws MalformedURLException, CIFSException {
            try ( SmbResource r = new SmbFile("smb://0.0.0.0/", getContext());
                  SmbResource s = r.resolve("Public/");
                  SmbResource p = s.resolve("MyVideo.mkv"); ) {
    
                SmbResourceLocator fl = p.getLocator();
    
                assertEquals("0.0.0.0", fl.getServer());
    Java
    - Registered: Sun Apr 28 00:10:09 GMT 2024
    - Last Modified: Wed Jan 08 13:16:07 GMT 2020
    - 23K bytes
    - Viewed (0)
  7. src/test/java/jcifs/tests/FileOperationsTest.java

            try ( SmbFile defaultShareRoot = getDefaultShareRoot();
                  SmbResource f = new SmbFile(defaultShareRoot, makeRandomName());
                  SmbResource p = new SmbFile(getTestShareGuestURL(), getContext());
                  SmbResource tgt = new SmbFile(p, "other-share") ) {
                f.createNewFile();
                boolean renamed = false;
                try {
    Java
    - Registered: Sun Apr 28 00:10:09 GMT 2024
    - Last Modified: Thu Jan 05 13:17:59 GMT 2023
    - 16.3K bytes
    - Viewed (0)
  8. src/test/java/jcifs/tests/TimeoutTest.java

    import org.junit.runners.Parameterized.Parameters;
    
    import jcifs.Address;
    import jcifs.CIFSContext;
    import jcifs.CIFSException;
    import jcifs.NameServiceClient;
    import jcifs.NetbiosAddress;
    import jcifs.SmbResource;
    import jcifs.config.DelegatingConfiguration;
    import jcifs.context.CIFSContextWrapper;
    import jcifs.netbios.UniAddress;
    import jcifs.smb.SmbException;
    import jcifs.smb.SmbFile;
    import jcifs.smb.SmbSessionInternal;
    Java
    - Registered: Sun Apr 28 00:10:09 GMT 2024
    - Last Modified: Sun Jul 01 13:12:10 GMT 2018
    - 12.4K bytes
    - Viewed (0)
  9. src/test/java/jcifs/tests/NamingTest.java

    import org.junit.runners.Parameterized;
    import org.junit.runners.Parameterized.Parameters;
    import org.slf4j.Logger;
    import org.slf4j.LoggerFactory;
    
    import jcifs.CIFSException;
    import jcifs.SmbResource;
    import jcifs.config.PropertyConfiguration;
    import jcifs.context.BaseContext;
    import jcifs.smb.SmbFile;
    
    
    /**
     * @author mbechler
     *
     */
    @RunWith ( Parameterized.class )
    Java
    - Registered: Sun Apr 28 00:10:09 GMT 2024
    - Last Modified: Sat Jun 06 10:48:05 GMT 2020
    - 7K bytes
    - Viewed (0)
  10. src/test/java/jcifs/tests/EnumTest.java

                try ( SmbResource c = f.resolve("c/") ) {
                    if ( !c.exists() ) {
                        c.mkdirs();
                    }
                }
    
                Set<String> names = new HashSet<>();
                try ( CloseableIterator<SmbResource> chld = f.children() ) {
                    while ( chld.hasNext() ) {
    
                        try ( SmbResource next = chld.next() ) {
    Java
    - Registered: Sun Apr 28 00:10:09 GMT 2024
    - Last Modified: Thu Jan 05 13:09:03 GMT 2023
    - 25.5K bytes
    - Viewed (0)
Back to top