Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for getParent (0.28 sec)

  1. src/main/java/jcifs/smb/DirFileEntryEnumIterator1.java

        }
    
    
        @SuppressWarnings ( "resource" )
        @Override
        protected final FileEntry open () throws CIFSException {
            SmbResourceLocator loc = this.getParent().getLocator();
            String unc = loc.getUNCPath();
            String p = loc.getURL().getPath();
            if ( p.lastIndexOf('/') != ( p.length() - 1 ) ) {
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sat Nov 13 15:13:49 GMT 2021
    - 5.3K bytes
    - Viewed (0)
  2. src/test/java/jcifs/tests/FileLocationTest.java

        public void testParentRoot () throws MalformedURLException, CIFSException {
            try ( SmbFile p = new SmbFile("smb://", getContext());
                  SmbResource pp = new SmbFile(p.getParent(), getContext()) ) {
                assertEquals("smb://", p.getLocator().getParent());
                assertEquals(SmbConstants.TYPE_WORKGROUP, pp.getLocator().getType());
                assertNull(pp.getLocator().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)
  3. src/main/java/jcifs/smb/NetServerFileEntryAdapterIterator.java

    
        /**
         * @param fe
         * @return
         * @throws MalformedURLException
         */
        @Override
        protected SmbResource adapt ( FileEntry e ) throws MalformedURLException {
            return new SmbFile(getParent(), e.getName(), false, e.getType(), SmbConstants.ATTR_READONLY | SmbConstants.ATTR_DIRECTORY, 0L, 0L, 0L, 0L);
        }
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sun Jul 01 13:12:10 GMT 2018
    - 1.6K bytes
    - Viewed (0)
  4. src/main/java/jcifs/smb/DirFileEntryEnumIterator2.java

         * @throws CIFSException
         */
        @SuppressWarnings ( "resource" )
        @Override
        protected FileEntry open () throws CIFSException {
            SmbTreeHandleImpl th = getTreeHandle();
            String uncPath = getParent().getLocator().getUNCPath();
            Smb2CreateRequest create = new Smb2CreateRequest(th.getConfig(), uncPath);
            create.setCreateOptions(Smb2CreateRequest.FILE_DIRECTORY_FILE);
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sun Dec 20 16:15:08 GMT 2020
    - 5.7K bytes
    - Viewed (0)
  5. src/main/java/jcifs/SmbResourceLocator.java

         *         <code>smb://</code> if the resource refers to the root of the URL
         *         hierarchy which incidentally is also <code>smb://</code>.
         */
        String getParent ();
    
    
        /**
         * Returns the full uncanonicalized URL of this SMB resource. An
         * <code>SmbFile</code> constructed with the result of this method will
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sun Jul 01 13:12:10 GMT 2018
    - 5.6K bytes
    - Viewed (0)
  6. src/main/java/jcifs/smb/DirFileEntryAdapterIterator.java

         * @param fe
         * @return
         * @throws MalformedURLException
         */
        @Override
        protected SmbResource adapt ( FileEntry e ) throws MalformedURLException {
            return new SmbFile(
                getParent(),
                e.getName(),
                true,
                SmbConstants.TYPE_FILESYSTEM,
                e.getAttributes(),
                e.createTime(),
                e.lastModified(),
                e.lastAccess(),
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sun Jul 01 13:12:10 GMT 2018
    - 1.7K bytes
    - Viewed (0)
  7. src/main/java/jcifs/smb/DirFileEntryEnumIteratorBase.java

         * @return the wildcard
         */
        public final String getWildcard () {
            return this.wildcard;
        }
    
    
        /**
         * @return the parent
         */
        public final SmbResource getParent () {
            return this.parent;
        }
    
    
        private final boolean filter ( FileEntry fe ) {
            String name = fe.getName();
            if ( name.length() < 3 ) {
                int h = name.hashCode();
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sun Jul 01 13:12:10 GMT 2018
    - 5.8K bytes
    - Viewed (0)
  8. src/main/java/jcifs/smb/FileEntryAdapterIterator.java

            this.delegate = delegate;
            this.filter = filter;
            this.next = advance();
        }
    
    
        /**
         * @return the parent
         */
        protected final SmbResource getParent () {
            return this.parent;
        }
    
    
        /**
         * @return
         * 
         */
        private SmbResource advance () {
            while ( this.delegate.hasNext() ) {
    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)
  9. src/main/java/jcifs/smb1/smb1/TestLocking.java

        String url = null;
        int numComplete = 0;
        long ltime = 0L;
    
        public void run()
        {
            try {
                SmbFile f = new SmbFile(url);
                SmbFile d = new SmbFile(f.getParent());
                byte[] buf = new byte[1024];
    
                for (int ii = 0; ii < numIter; ii++) {
    
                    synchronized (this) {
                        ltime = System.currentTimeMillis();
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Fri Mar 22 21:10:40 GMT 2019
    - 3.4K bytes
    - Viewed (0)
  10. src/main/java/jcifs/smb/SmbResourceLocatorImpl.java

            }
            else {
                return "smb://";
            }
        }
    
    
        /**
         * {@inheritDoc}
         *
         * @see jcifs.SmbResourceLocator#getParent()
         */
        @Override
        public String getParent () {
            String str = this.url.getAuthority();
    
            if ( str != null && !str.isEmpty() ) {
                StringBuffer sb = new StringBuffer("smb://");
    
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sat Jul 20 08:24:53 GMT 2019
    - 23.9K bytes
    - Viewed (0)
Back to top