Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 13 for TYPE_FILESYSTEM (0.12 sec)

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

        @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(),
                e.length());
        }
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 1.7K bytes
    - Viewed (0)
  2. src/test/java/jcifs/tests/FileLocationTest.java

                  SmbResource c = new SmbFile(p, "foo/") ) {
                SmbResourceLocator fl = c.getLocator();
                assertEquals("1.2.3.4", fl.getServer());
                assertEquals(SmbConstants.TYPE_FILESYSTEM, fl.getType());
                assertEquals("share", fl.getShare());
                assertEquals("\\foo\\", fl.getUNCPath());
                assertEquals("smb://1.2.3.4/share/foo/", fl.getCanonicalURL());
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Wed Jan 08 13:16:07 UTC 2020
    - 23K bytes
    - Viewed (0)
  3. src/main/java/jcifs/internal/fscc/FileBothDirectoryInfo.java

            this.unicode = unicode;
        }
    
    
        @Override
        public String getName () {
            return this.filename;
        }
    
    
        @Override
        public int getType () {
            return SmbConstants.TYPE_FILESYSTEM;
        }
    
    
        /**
         * @return the fileIndex
         */
        @Override
        public int getFileIndex () {
            return this.fileIndex;
        }
    
    
        /**
         * @return the filename
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 5.6K bytes
    - Viewed (0)
  4. src/main/java/jcifs/SmbResourceLocator.java

        /**
         * @return whether this is a IPC connection
         */
        boolean isIPC ();
    
    
        /**
         * Returns type of of object this <tt>SmbFile</tt> represents.
         * 
         * @return <tt>TYPE_FILESYSTEM, TYPE_WORKGROUP, TYPE_SERVER,
         * TYPE_NAMED_PIPE</tt>, or <tt>TYPE_SHARE</tt> in which case it may be either <tt>TYPE_SHARE</tt>,
         *         <tt>TYPE_PRINTER</tt> or <tt>TYPE_COMM</tt>.
         * @throws CIFSException
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 5.6K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb1/smb1/Trans2FindFirst2Response.java

            String shortName;
            String filename;
    
            public String getName() {
                return filename;
            }
            public int getType() {
                return SmbFile.TYPE_FILESYSTEM;
            }
            public int getAttributes() {
                return extFileAttributes;
            }
            public long createTime() {
                return creationTime;
            }
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Fri Mar 22 21:10:40 UTC 2019
    - 8.5K bytes
    - Viewed (0)
  6. src/test/java/jcifs/tests/FileAttributesTest.java

        @Test
        public void testBaseFile () throws MalformedURLException, CIFSException {
            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 {
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Thu Jan 05 13:09:03 UTC 2023
    - 12.3K bytes
    - Viewed (0)
  7. src/main/java/jcifs/SmbConstants.java

        /**
         * Returned by {@link jcifs.SmbResource#getType()} if the resource this <tt>SmbFile</tt>
         * represents is a regular file or directory.
         */
        static final int TYPE_FILESYSTEM = 0x01;
        /**
         * Returned by {@link jcifs.SmbResource#getType()} if the resource this <tt>SmbFile</tt>
         * represents is a workgroup.
         */
        static final int TYPE_WORKGROUP = 0x02;
        /**
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 8.9K bytes
    - Viewed (0)
  8. src/main/java/jcifs/smb1/smb1/SmbFile.java

    /**
     * Returns type of of object this <tt>SmbFile</tt> represents.
     * @return <tt>TYPE_FILESYSTEM, TYPE_WORKGROUP, TYPE_SERVER, TYPE_SHARE,
     * TYPE_PRINTER, TYPE_NAMED_PIPE</tt>, or <tt>TYPE_COMM</tt>.
     */
        public int getType() throws SmbException {
            if( type == 0 ) {
                if( getUncPath0().length() > 1 ) {
                    type = TYPE_FILESYSTEM;
                } else if( share != null ) {
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Mon Mar 13 12:00:57 UTC 2023
    - 107.9K bytes
    - Viewed (0)
  9. src/main/java/jcifs/smb/SmbFileOutputStream.java

                }
    
                int w;
                do {
                    int blockSize = ( this.file.getType() == SmbConstants.TYPE_FILESYSTEM ) ? this.writeSizeFile : this.writeSize;
                    w = len > blockSize ? blockSize : len;
    
                    if ( this.smb2 ) {
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sat Nov 13 15:14:04 UTC 2021
    - 11.9K bytes
    - Viewed (0)
  10. src/main/java/jcifs/smb/SmbFileInputStream.java

                SmbComReadAndXResponse response = new SmbComReadAndXResponse(th.getConfig(), b, off);
    
                int type = this.file.getType();
                int r, n;
                int blockSize = ( type == SmbConstants.TYPE_FILESYSTEM ) ? this.readSizeFile : this.readSize;
                do {
                    r = len > blockSize ? blockSize : len;
    
                    if ( log.isTraceEnabled() ) {
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun May 17 08:55:14 UTC 2020
    - 13.2K bytes
    - Viewed (0)
Back to top