Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 16 for Treat (0.15 sec)

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

            // openFunction
            if ( ( flags & SmbConstants.O_TRUNC ) == SmbConstants.O_TRUNC ) {
                // truncate the file
                if ( ( flags & SmbConstants.O_CREAT ) == SmbConstants.O_CREAT ) {
                    // create it if necessary
                    this.openFunction = OPEN_FN_TRUNC | OPEN_FN_CREATE;
                }
                else {
                    this.openFunction = OPEN_FN_TRUNC;
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sun Jul 01 13:12:10 GMT 2018
    - 7K bytes
    - Viewed (0)
  2. src/main/java/jcifs/smb1/smb1/SmbRandomAccessFile.java

                throws SmbException, MalformedURLException, UnknownHostException {
            this.file = file;
            if( mode.equals( "r" )) {
                this.openFlags = SmbFile.O_CREAT | SmbFile.O_RDONLY;
            } else if( mode.equals( "rw" )) {
                this.openFlags = SmbFile.O_CREAT | SmbFile.O_RDWR | SmbFile.O_APPEND;
                write_andx_resp = new SmbComWriteAndXResponse();
                options = WRITE_OPTIONS;
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Fri Mar 22 21:10:40 GMT 2019
    - 10.9K bytes
    - Viewed (0)
  3. src/main/java/jcifs/smb1/smb1/SmbFile.java

        static final int O_WRONLY = 0x02;
        static final int O_RDWR   = 0x03;
        static final int O_APPEND = 0x04;
    
        // Open Function Encoding
        // create if the file does not exist
        static final int O_CREAT  = 0x0010;
        // fail if the file exists
        static final int O_EXCL   = 0x0020;
        // truncate if the file exists
        static final int O_TRUNC  = 0x0040;
    
        // share access
    /**
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Mon Mar 13 12:00:57 GMT 2023
    - 107.9K bytes
    - Viewed (2)
  4. src/main/java/jcifs/smb1/smb1/SmbFileInputStream.java

            this.access = (openFlags >>> 16) & 0xFFFF;
            if (file.type != SmbFile.TYPE_NAMED_PIPE) {
                file.open( openFlags, access, SmbFile.ATTR_NORMAL, 0 );
                this.openFlags &= ~(SmbFile.O_CREAT | SmbFile.O_TRUNC);
            } else {
                file.connect0();
            }
            readSize = Math.min( file.tree.session.transport.rcv_buf_size - 70,
    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)
  5. src/main/java/jcifs/smb/SmbFileInputStream.java

                this.smb2 = th.isSMB2();
                if ( file.getType() != SmbConstants.TYPE_NAMED_PIPE ) {
                    try ( SmbFileHandle h = ensureOpen() ) {}
                    this.openFlags &= ~ ( SmbConstants.O_CREAT | SmbConstants.O_TRUNC );
                }
    
                init(th);
            }
            catch ( CIFSException e ) {
                throw SmbException.wrap(e);
            }
        }
    
    
        /**
    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)
  6. src/main/java/jcifs/smb1/smb1/SmbComOpenAndX.java

                if(( flags & SmbFile.O_CREAT ) == SmbFile.O_CREAT ) {
                    // create it if necessary
                    openFunction = OPEN_FN_TRUNC | OPEN_FN_CREATE;
                } else {
                    openFunction = OPEN_FN_TRUNC;
                }
            } else {
                // don't truncate the file
                if(( flags & SmbFile.O_CREAT ) == SmbFile.O_CREAT ) {
                    // create it if necessary
    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)
  7. src/main/java/jcifs/smb1/smb1/SmbComNTCreateAndX.java

                if(( flags & SmbFile.O_CREAT ) == SmbFile.O_CREAT ) {
                    // create it if necessary
                    createDisposition = FILE_OVERWRITE_IF;
                } else {
                    createDisposition = FILE_OVERWRITE;
                }
            } else {
                // don't truncate the file
                if(( flags & SmbFile.O_CREAT ) == SmbFile.O_CREAT ) {
                    // create it if necessary
    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)
  8. src/main/java/jcifs/smb/SmbCopyUtil.java

         */
        static SmbFileHandleImpl openCopyTargetFile ( SmbFile dest, int attrs, boolean alsoRead ) throws CIFSException {
            try {
                return dest.openUnshared(
                    SmbConstants.O_CREAT | SmbConstants.O_WRONLY | SmbConstants.O_TRUNC,
                    SmbConstants.FILE_WRITE_DATA | SmbConstants.FILE_WRITE_ATTRIBUTES | ( alsoRead ? SmbConstants.FILE_READ_DATA : 0 ),
                    SmbConstants.FILE_NO_SHARE,
    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)
  9. src/test/java/jcifs/tests/OplockTests.java

                            throw e;
                        }
                    }
                }
                else if ( trans.hasCapability(SmbConstants.CAP_NT_SMBS) ) {
                    int flags = SmbConstants.O_CREAT;
                    int sharing = SmbConstants.FILE_SHARE_DELETE | SmbConstants.FILE_SHARE_READ | SmbConstants.FILE_SHARE_WRITE;
    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)
  10. src/main/java/jcifs/smb1/smb1/SmbFileOutputStream.java

     */
    
        public SmbFileOutputStream( SmbFile file, boolean append ) throws SmbException, MalformedURLException, UnknownHostException {
            this( file, append, append ? SmbFile.O_CREAT | SmbFile.O_WRONLY | SmbFile.O_APPEND :
                                        SmbFile.O_CREAT | SmbFile.O_WRONLY | SmbFile.O_TRUNC );
        }
    /**
     * Creates an {@link java.io.OutputStream} for writing bytes to a file
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Fri Mar 22 21:10:40 GMT 2019
    - 9.2K bytes
    - Viewed (0)
Back to top