Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for shareAccess (0.21 sec)

  1. src/main/java/jcifs/internal/smb1/com/SmbComNTCreateAndX.java

            this.extFileAttributes = extFileAttributes;
    
            // shareAccess
            this.shareAccess = shareAccess;
    
            // createDisposition
            if ( ( flags & SmbConstants.O_TRUNC ) == SmbConstants.O_TRUNC ) {
                // truncate the file
                if ( ( flags & SmbConstants.O_CREAT ) == SmbConstants.O_CREAT ) {
                    // create it if necessary
    Java
    - Registered: Sun Apr 28 00:10:09 GMT 2024
    - Last Modified: Sun Jul 01 13:12:10 GMT 2018
    - 8.2K bytes
    - Viewed (0)
  2. src/main/java/jcifs/smb1/smb1/SmbComNTCreateAndX.java

            desiredAccess |= FILE_READ_DATA | FILE_READ_EA | FILE_READ_ATTRIBUTES;
    
            // extFileAttributes
            this.extFileAttributes = extFileAttributes;
    
            // shareAccess
            this.shareAccess = shareAccess;
    
            // createDisposition
            if(( flags & SmbFile.O_TRUNC ) == SmbFile.O_TRUNC ) {
                // truncate the file
                if(( flags & SmbFile.O_CREAT ) == SmbFile.O_CREAT ) {
    Java
    - Registered: Sun Apr 28 00:10:09 GMT 2024
    - Last Modified: Fri Mar 22 21:10:40 GMT 2019
    - 6.6K bytes
    - Viewed (0)
  3. src/main/java/jcifs/internal/smb2/create/Smb2CreateRequest.java

            this.fileAttributes = fileAttributes;
        }
    
    
        /**
         * @param shareAccess
         *            the shareAccess to set
         */
        public void setShareAccess ( int shareAccess ) {
            this.shareAccess = shareAccess;
        }
    
    
        /**
         * @param createDisposition
         *            the createDisposition to set
         */
    Java
    - Registered: Sun Apr 28 00:10:09 GMT 2024
    - Last Modified: Sat Jun 01 09:52:11 GMT 2019
    - 14.3K bytes
    - Viewed (0)
  4. src/main/java/jcifs/internal/smb1/com/SmbComOpenAndX.java

                this.desiredAccess = 0x2; /* Mmm, I thought 0x03 was RDWR */
            }
    
            // map shareAccess as far as we can
            if ( ( shareAccess & SmbConstants.FILE_SHARE_READ ) != 0 && ( shareAccess & SmbConstants.FILE_SHARE_WRITE ) != 0 ) {
                this.desiredAccess |= SHARING_DENY_NONE;
            }
            else if ( shareAccess == SmbConstants.FILE_NO_SHARE ) {
                this.desiredAccess |= SHARING_DENY_READ_WRITE_EXECUTE;
    Java
    - Registered: Sun Apr 28 00:10:09 GMT 2024
    - Last Modified: Sun Jul 01 13:12:10 GMT 2018
    - 7K bytes
    - Viewed (0)
  5. src/main/java/jcifs/SmbConstants.java

        /**
         * When specified as the <tt>shareAccess</tt> constructor parameter,
         * other SMB clients (including other threads making calls into jCIFS)
         * will not be permitted to access the target file and will receive "The
         * file is being accessed by another process" message.
         */
        static final int FILE_NO_SHARE = 0x00;
        /**
         * When specified as the <tt>shareAccess</tt> constructor parameter,
    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/main/java/jcifs/smb1/smb1/SmbFileOutputStream.java

     * @param shareAccess File sharing flag: <code>SmbFile.FILE_NOSHARE</code> or any combination of <code>SmbFile.FILE_READ</code>, <code>SmbFile.FILE_WRITE</code>, and <code>SmbFile.FILE_DELETE</code>
     */
    
        public SmbFileOutputStream( String url, int shareAccess ) throws SmbException, MalformedURLException, UnknownHostException {
            this( new SmbFile( url, "", null, shareAccess ), false );
        }
    
    Java
    - Registered: Sun Apr 28 00:10:09 GMT 2024
    - Last Modified: Fri Mar 22 21:10:40 GMT 2019
    - 9.2K bytes
    - Viewed (0)
  7. src/main/java/jcifs/smb1/smb1/SmbFile.java

            if ((shareAccess & ~(FILE_SHARE_READ | FILE_SHARE_WRITE | FILE_SHARE_DELETE)) != 0) {
                throw new RuntimeException( "Illegal shareAccess parameter" );
            }
            this.shareAccess = shareAccess;
        }
    /**
     * Constructs an SmbFile representing a resource on an SMB network such
     * as a file or directory. The second parameter is a relative path from
    Java
    - Registered: Sun Apr 28 00:10:09 GMT 2024
    - Last Modified: Mon Mar 13 12:00:57 GMT 2023
    - 107.9K bytes
    - Viewed (2)
  8. src/main/java/jcifs/smb1/smb1/SmbRandomAccessFile.java

        private byte[] tmp = new byte[8];
        private SmbComWriteAndXResponse write_andx_resp = null;
    
        public SmbRandomAccessFile( String url, String mode, int shareAccess )
                throws SmbException, MalformedURLException, UnknownHostException {
            this( new SmbFile( url, "", null, shareAccess ), mode );
        }
        public SmbRandomAccessFile( SmbFile file, String mode )
                throws SmbException, MalformedURLException, UnknownHostException {
    Java
    - Registered: Sun Apr 28 00:10:09 GMT 2024
    - Last Modified: Fri Mar 22 21:10:40 GMT 2019
    - 10.9K bytes
    - Viewed (0)
  9. src/main/java/jcifs/smb/SmbFile.java

                ServerMessageBlock2Request<T> first, ServerMessageBlock2Request<?>... others ) throws CIFSException {
            return withOpen(th, createDisposition, 0, SmbConstants.ATTR_NORMAL, desiredAccess, shareAccess, first, others);
        }
    
    
        @SuppressWarnings ( "unchecked" )
    Java
    - Registered: Sun Apr 28 00:10:09 GMT 2024
    - Last Modified: Mon Mar 13 12:00:57 GMT 2023
    - 81.6K bytes
    - Viewed (0)
Back to top