Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 16 for great (0.24 sec)

  1. src/test/java/jcifs/tests/KerberosTest.java

            Assume.assumeTrue(getContext().getConfig().getResolveOrder().contains(ResolverType.RESOLVER_DNS));
            long start = System.currentTimeMillis() / 1000 * 1000;
            // this is not too great as it depends on timing/clockskew
            // first we need to obtain a ticket, therefor need valid credentials
            // then we need to wait until the ticket is expired
            int wait = 10 * 1000;
    Java
    - Registered: Sun Apr 28 00:10:09 GMT 2024
    - Last Modified: Sun Mar 01 09:46:04 GMT 2020
    - 11.5K bytes
    - Viewed (0)
  2. 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 Apr 28 00:10:09 GMT 2024
    - Last Modified: Fri Mar 22 21:10:40 GMT 2019
    - 9.2K bytes
    - Viewed (0)
  3. src/main/java/jcifs/smb/SmbFileOutputStream.java

        public SmbFileOutputStream ( SmbFile file, boolean append ) throws SmbException {
            this(
                file,
                append,
                append ? SmbConstants.O_CREAT | SmbConstants.O_WRONLY | SmbConstants.O_APPEND
                        : SmbConstants.O_CREAT | SmbConstants.O_WRONLY | SmbConstants.O_TRUNC,
                0,
                SmbConstants.DEFAULT_SHARING);
        }
    
    
    Java
    - Registered: Sun Apr 28 00:10:09 GMT 2024
    - Last Modified: Sat Nov 13 15:14:04 GMT 2021
    - 11.9K bytes
    - Viewed (0)
  4. src/main/java/jcifs/SmbConstants.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;
    
    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)
  5. 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 Apr 28 00:10:09 GMT 2024
    - Last Modified: Sun Jul 01 13:12:10 GMT 2018
    - 7K bytes
    - Viewed (0)
  6. 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 Apr 28 00:10:09 GMT 2024
    - Last Modified: Fri Mar 22 21:10:40 GMT 2019
    - 10.9K bytes
    - Viewed (0)
  7. src/main/java/jcifs/smb/SmbRandomAccessFile.java

                if ( mode.equals("r") ) {
                    this.openFlags = SmbConstants.O_CREAT | SmbConstants.O_RDONLY;
                    this.access = SmbConstants.FILE_READ_DATA;
                }
                else if ( mode.equals("rw") ) {
                    this.openFlags = SmbConstants.O_CREAT | SmbConstants.O_RDWR | SmbConstants.O_APPEND;
                    this.write_andx_resp = new SmbComWriteAndXResponse(th.getConfig());
    Java
    - Registered: Sun Apr 28 00:10:09 GMT 2024
    - Last Modified: Wed Jan 08 12:01:33 GMT 2020
    - 18.5K bytes
    - Viewed (0)
  8. 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 Apr 28 00:10:09 GMT 2024
    - Last Modified: Mon Mar 13 12:00:57 GMT 2023
    - 107.9K bytes
    - Viewed (2)
  9. src/main/java/jcifs/smb/SmbFile.java

                    Smb2CreateRequest req = new Smb2CreateRequest(config, uncPath);
                    req.setDesiredAccess(access);
    
                    if ( ( flags & SmbConstants.O_TRUNC ) == O_TRUNC && ( flags & SmbConstants.O_CREAT ) == O_CREAT ) {
                        req.setCreateDisposition(Smb2CreateRequest.FILE_OVERWRITE_IF);
                    }
                    else if ( ( flags & SmbConstants.O_TRUNC ) == O_TRUNC ) {
    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)
  10. 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 Apr 28 00:10:09 GMT 2024
    - Last Modified: Fri Mar 22 21:10:40 GMT 2019
    - 7.9K bytes
    - Viewed (0)
Back to top