Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 50 for open (0.16 sec)

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

                return 0;
            }
            long start = fp;
    
            if( tmp == null ) {
                throw new IOException( "Bad file descriptor" );
            }
            // ensure file is open
            file.open( openFlags, access, SmbFile.ATTR_NORMAL, 0 );
    
            /*
             * Read AndX Request / Response
             */
    
            if( file.log.level >= 4 )
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Fri Mar 22 21:10:40 GMT 2019
    - 7.9K bytes
    - Viewed (0)
  2. src/main/java/jcifs/smb/SmbFileInputStream.java

            }
        }
    
    
        /**
         * Ensures that the file descriptor is openend
         * 
         * @throws CIFSException
         */
        public void open () throws CIFSException {
            try ( SmbFileHandleImpl fh = ensureOpen() ) {}
        }
    
    
        /**
         * @param file
         * @param openFlags
         * @return
         * @throws SmbException
         */
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sun May 17 08:55:14 GMT 2020
    - 13.2K bytes
    - Viewed (0)
  3. src/main/java/jcifs/smb1/smb1/SmbComOpenAndX.java

                        // fail if already exists
                        openFunction = OPEN_FN_CREATE | OPEN_FN_FAIL_IF_EXISTS;
                    } else {
                        openFunction = OPEN_FN_CREATE | OPEN_FN_OPEN;
                    }
                } else {
                    openFunction = OPEN_FN_OPEN;
                }
            }
        }
    
        int getBatchLimit( byte command ) {
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Fri Mar 22 21:10:40 GMT 2019
    - 5.7K bytes
    - Viewed (0)
  4. src/main/java/jcifs/smb1/smb1/SmbComNTCreateAndX.java

        static final int FILE_SUPERSEDE    = 0x0;
    
        /* Open the file or fail if it does not exist
         * aka OPEN_EXISTING
         */
    
        static final int FILE_OPEN         = 0x1;
    
        /* Create the file or fail if it does not exist
         * aka CREATE_NEW
         */
    
        static final int FILE_CREATE       = 0x2;
    
        /* Open the file or create it if it does not exist
         * aka OPEN_ALWAYS
         */
    
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Fri Mar 22 21:10:40 GMT 2019
    - 6.6K bytes
    - Viewed (0)
  5. src/main/java/jcifs/SmbFileHandle.java

     * License along with this library; if not, write to the Free Software
     * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
     */
    package jcifs;
    
    
    /**
     * Handle to an open file
     * 
     * @author mbechler
     *
     */
    public interface SmbFileHandle extends AutoCloseable {
    
        /**
         * @return the tree
         */
        SmbTreeHandle getTree ();
    
    
        /**
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sun Jul 01 13:12:10 GMT 2018
    - 1.5K bytes
    - Viewed (0)
  6. src/main/java/jcifs/internal/smb2/create/Smb2CreateRequest.java

         * 
         */
        public static final int FILE_SUPERSEDE = 0x0;
        /**
         * 
         */
        public static final int FILE_OPEN = 0x1;
        /**
         * 
         */
        public static final int FILE_CREATE = 0x2;
        /**
         * 
         */
        public static final int FILE_OPEN_IF = 0x3;
        /**
         * 
         */
        public static final int FILE_OVERWRITE = 0x4;
        /**
         * 
         */
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sat Jun 01 09:52:11 GMT 2019
    - 14.3K bytes
    - Viewed (0)
  7. src/test/java/jcifs/tests/OplockTests.java

                    create.setRequestedOplockLevel(Smb2CreateRequest.SMB2_OPLOCK_LEVEL_BATCH);
    
                    tree.send(create);
    
                    Smb2CreateRequest create2 = new Smb2CreateRequest(sess.getConfig(), "\\foocc");
                    create2.setOverrideTimeout(1000);
                    create2.setCreateDisposition(Smb2CreateRequest.FILE_OPEN_IF);
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Thu Jan 05 13:09:03 GMT 2023
    - 6.1K bytes
    - Viewed (0)
  8. src/main/java/jcifs/smb1/smb1/SmbConstants.java

        static final int FLAGS_VERIFY_ALL_WRITES           = 0x0010; 
        static final int FLAGS_TREE_COPY                   = 0x0020; 
    
        // open function
        static final int OPEN_FUNCTION_FAIL_IF_EXISTS      = 0x0000;
        static final int OPEN_FUNCTION_OVERWRITE_IF_EXISTS = 0x0020;
    
        static final int PID = (int)( Math.random() * 65536d );
    
        static final int SECURITY_SHARE = 0x00;
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Fri Mar 22 21:10:40 GMT 2019
    - 8.4K bytes
    - Viewed (0)
  9. src/main/java/jcifs/smb/SmbCopyUtil.java

                        dh.send(req);
                    }
                    else if ( dh.hasCapability(SmbConstants.CAP_NT_SMBS) ) {
                        // use the open file descriptor
                        dh.send(
                            new Trans2SetFileInformation(dh.getConfig(), dfd.getFid(), attrs, ctime, mtime, atime),
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Tue Jul 07 10:52:42 GMT 2020
    - 17.1K bytes
    - Viewed (0)
  10. src/main/java/jcifs/smb/DirFileEntryEnumIterator2.java

    
        /**
         * @param th
         * @param parent
         * @param wildcard
         * @return
         * @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);
    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)
Back to top