Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 34 for SmbResource (0.19 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 May 05 00:10:10 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 May 05 00:10:10 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 May 05 00:10:10 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 May 05 00:10:10 GMT 2024
    - Last Modified: Thu Jan 05 13:09:03 GMT 2023
    - 15.8K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb/NetServerEnumIterator.java

    
    import org.slf4j.Logger;
    import org.slf4j.LoggerFactory;
    
    import jcifs.CIFSException;
    import jcifs.CloseableIterator;
    import jcifs.ResourceNameFilter;
    import jcifs.SmbConstants;
    import jcifs.SmbResource;
    import jcifs.SmbResourceLocator;
    import jcifs.internal.smb1.net.NetServerEnum2;
    import jcifs.internal.smb1.net.NetServerEnum2Response;
    import jcifs.internal.smb1.trans.SmbComTransaction;
    
    
    /**
     *
     */
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sun Jul 01 13:12:10 GMT 2018
    - 6K bytes
    - Viewed (0)
  6. 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 May 05 00:10:10 GMT 2024
    - Last Modified: Thu Jan 05 13:09:03 GMT 2023
    - 25.5K bytes
    - Viewed (0)
  7. src/test/java/jcifs/tests/FileAttributesTest.java

            try ( SmbResource f = getDefaultShareRoot() ) {
                checkConnection(f);
                if ( f.getType() != SmbConstants.TYPE_FILESYSTEM ) {
                    assertEquals(SmbConstants.TYPE_SHARE, f.getType());
                }
            }
        }
    
    
        @Test
        public void testGetFreeSpace () throws CIFSException, MalformedURLException {
            try ( SmbResource f = getDefaultShareRoot() ) {
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Thu Jan 05 13:09:03 GMT 2023
    - 12.3K bytes
    - Viewed (0)
  8. 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 May 05 00:10:10 GMT 2024
    - Last Modified: Wed Jan 08 13:16:07 GMT 2020
    - 23K bytes
    - Viewed (0)
  9. src/main/java/jcifs/smb/SmbEnumerationUtil.java

                throws SmbException {
            try ( CloseableIterator<SmbResource> it = doEnum(root, wildcard, searchAttributes, fnf == null ? null : new ResourceNameFilter() {
    
                @Override
                public boolean accept ( SmbResource parent, String name ) throws CIFSException {
                    if ( ! ( parent instanceof SmbFile ) ) {
                        return false;
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sat Jul 20 08:41:19 GMT 2019
    - 12.5K bytes
    - Viewed (0)
  10. 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 May 05 00:10:10 GMT 2024
    - Last Modified: Thu Jan 05 13:17:59 GMT 2023
    - 16.3K bytes
    - Viewed (0)
Back to top