Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 16 for if (0.18 sec)

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

     * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
     * Lesser General Public License for more details.
     * 
     * You should have received a copy of the GNU Lesser General Public
     * 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.tests;
    
    
    import static org.junit.Assert.assertEquals;
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Thu Jan 05 13:09:03 GMT 2023
    - 12.3K bytes
    - Viewed (0)
  2. src/test/java/jcifs/tests/EnumTest.java

                    if ( haveHidden && !Boolean.parseBoolean(getProperties().getOrDefault("test.skip.hidden", "false")) ) {
                        SmbFile[] hidden = f.listFiles(new DosFileFilter("*", SmbConstants.ATTR_HIDDEN));
                        assertNotNull(hidden);
                        assertEquals(1, hidden.length);
                    }
    
                    if ( haveArchive ) {
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Thu Jan 05 13:09:03 GMT 2023
    - 25.5K bytes
    - Viewed (0)
  3. src/main/java/jcifs/smb/DfsImpl.java

            else {
                link = path;
            }
    
            if ( log.isTraceEnabled() ) {
                log.trace("Initial link is " + link);
            }
    
            if ( dr == null || !link.equals(dr.getLink()) ) {
                while ( true ) {
                    dr = links.map.get(link);
    
                    if ( dr != null ) {
                        if ( log.isTraceEnabled() ) {
                            log.trace("Found at " + link);
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Thu Jan 05 13:07:29 GMT 2023
    - 29.1K bytes
    - Viewed (0)
  4. src/main/java/jcifs/smb/SmbFileOutputStream.java

            this.useNTSmbs = th.hasCapability(SmbConstants.CAP_NT_SMBS);
            if ( !this.useNTSmbs ) {
                log.debug("No support for NT SMBs");
            }
    
            // there seems to be a bug with some servers that causes corruption if using signatures +
            // CAP_LARGE_WRITE
            if ( th.hasCapability(SmbConstants.CAP_LARGE_WRITEX) && !th.areSignaturesActive() ) {
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sat Nov 13 15:14:04 GMT 2021
    - 11.9K bytes
    - Viewed (0)
  5. src/main/java/jcifs/pac/kerberos/KerberosEncData.java

            byte[] plainDataChecksum = getHmac(plainData, codeHmac);
            if ( plainDataChecksum.length >= KerberosConstants.CHECKSUM_SIZE )
                for ( int i = 0; i < KerberosConstants.CHECKSUM_SIZE; i++ )
                    if ( plainDataChecksum[ i ] != data[ i ] )
                        throw new GeneralSecurityException("Checksum failed while decrypting.");
    
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Mon Oct 02 12:02:06 GMT 2023
    - 11.4K bytes
    - Viewed (0)
  6. src/test/java/jcifs/tests/PACTest.java

     * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
     * Lesser General Public License for more details.
     * 
     * You should have received a copy of the GNU Lesser General Public
     * 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.tests;
    
    
    import java.io.File;
    import java.nio.charset.StandardCharsets;
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sun Oct 01 12:01:17 GMT 2023
    - 22.3K bytes
    - Viewed (0)
  7. src/main/java/jcifs/internal/dfs/DfsReferralDataImpl.java

                if ( log.isDebugEnabled() ) {
                    log.debug(String.format("Applying DFS netbios name hack %s -> %s ", s, fqdn));
                }
                this.server = fqdn;
            }
        }
    
    
        @Override
        public void fixupHost ( String fqdn ) {
            String s = getServer();
            if ( s.indexOf('.') < 0 && s.toUpperCase(Locale.ROOT).equals(s) ) {
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sat Nov 13 15:13:49 GMT 2021
    - 11K bytes
    - Viewed (0)
  8. src/main/java/jcifs/config/BaseConfiguration.java

            Integer set = this.batchLimits.get(cmd);
            if ( set != null ) {
                return set;
            }
    
            set = doGetBatchLimit(cmd);
            if ( set != null ) {
                this.batchLimits.put(cmd, set);
                return set;
            }
    
            set = DEFAULT_BATCH_LIMITS.get(cmd);
            if ( set != null ) {
                return set;
            }
            return 1;
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Thu Jan 05 13:06:39 GMT 2023
    - 20.4K bytes
    - Viewed (1)
  9. src/main/java/jcifs/netbios/NameServiceClientImpl.java

                char c = data[ i ];
                if ( c < 48 || c > 57 ) {
                    return doNameQuery(name, svr);
                }
                int b = 0x00;
                while ( c != '.' ) {
                    if ( c < 48 || c > 57 ) {
                        return doNameQuery(name, svr);
                    }
                    b = b * 10 + c - '0';
    
                    if ( ++i >= data.length )
                        break;
    
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sun Aug 14 14:26:22 GMT 2022
    - 38.2K bytes
    - Viewed (0)
  10. src/test/java/jcifs/tests/FileOperationsTest.java

                }
                catch ( SmbException e) {
                    if ("Cannot rename between different trees".equals(e.getMessage())) {
                        // expected
                        return;
                    }
                    throw e;
                }
                finally {
                    if ( !renamed && f.exists() ) {
                        f.delete();
                    }
                }
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Thu Jan 05 13:17:59 GMT 2023
    - 16.3K bytes
    - Viewed (0)
Back to top