Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 304 for finally (4.55 sec)

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

                }
                finally {
                    f.delete();
                }
            }
        }
    
    
        @Test
        public void testCreated () throws CIFSException, MalformedURLException, UnknownHostException {
            try ( SmbResource f = createTestFile() ) {
                try {
                    assertCloseTime(f.createTime());
                }
                finally {
                    f.delete();
    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

                        while ( chld.hasNext() ) {
                            chld.next();
                        }
                    }
                    finally {
                        bufSize[ 0 ] = origBufferSize;
                    }
                }
                finally {
                    f.delete();
                }
            }
        }
    
    
        @Test
        // BUG #16
    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/smb1/util/transport/Transport.java

                        ioe2.printStackTrace( log );
                    }
                    throw ioe;
                } catch( InterruptedException ie ) {
                    throw new TransportException( ie );
                } finally {
                    response_map.remove( request );
                }
        }
        private void loop() {
            while( thread == Thread.currentThread() ) {
                try {
                    Request key = peekKey();
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Fri Mar 22 20:39:42 GMT 2019
    - 9K bytes
    - Viewed (0)
  4. src/main/java/jcifs/pac/PacMac.java

    
    @SuppressWarnings ( "javadoc" )
    public class PacMac {
    
        /**
         * 
         */
        private static final String HMAC_KEY = "HMAC";
        private static final byte[] MD5_CONSTANT = "signaturekey\0".getBytes(StandardCharsets.US_ASCII);
        private static final byte[] ZERO_IV = new byte[] {
            0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
        };
    
    
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sun Jul 01 13:12:10 GMT 2018
    - 7K bytes
    - Viewed (0)
  5. src/test/java/jcifs/tests/FileOperationsTest.java

                    f.renameTo(f2);
                    try {
                        assertTrue(f2.exists());
                        renamed = true;
                    }
                    finally {
                        f2.delete();
                    }
                }
                finally {
                    if ( !renamed && f.exists() ) {
                        f.delete();
                    }
                }
            }
        }
    
    
        @Test
    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)
  6. src/main/java/jcifs/util/transport/Transport.java

        private volatile Thread thread;
        private volatile TransportException te;
    
        protected final Object inLock = new Object();
        protected final Object outLock = new Object();
    
        protected final Map<Long, Response> response_map = new ConcurrentHashMap<>(10);
        private final AtomicLong usageCount = new AtomicLong(1);
    
    
        /**
         * @return session increased usage count
         */
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sun Nov 01 18:12:21 GMT 2020
    - 24.1K bytes
    - Viewed (0)
  7. src/main/java/jcifs/smb1/smb1/SigningDigest.java

                    System.arraycopy("BSRSPYL ".getBytes(), 0, data, index, 8);
                }
            } catch (Exception ex) {
                if( log.level > 0 )
                    ex.printStackTrace( log );
            } finally {
                signSequence += 2;
            }
        } 
    
        /**
         * Performs MAC signature verification.  This calculates the signature
         * of the SMB and compares it to the signature field on the SMB itself.
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Fri Mar 22 21:10:40 GMT 2019
    - 7K bytes
    - Viewed (0)
  8. src/test/java/jcifs/tests/NamingTest.java

                            assertTrue("File exists " + u, tf.exists());
                            assertEquals(name, tf.getName());
                        }
                    }
                }
                finally {
                    d.delete();
                }
            }
        }
    
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sat Jun 06 10:48:05 GMT 2020
    - 7K bytes
    - Viewed (0)
  9. src/test/java/jcifs/tests/OplockTests.java

                            }
                        }
                        finally {
                            if ( resp2 != null && !trans.isDisconnected() ) {
                                tree.send(new SmbComClose(sess.getConfig(), resp2.getFid(), 0L));
                            }
                        }
                    }
                    finally {
                        if ( resp != null && !trans.isDisconnected() ) {
    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/test/java/jcifs/tests/DfsTest.java

        @Test
        public void testStandaloneDFSCache () throws CIFSException {
            CIFSContext context = getContext();
            context = withTestNTLMCredentials(context);
    
            final String hostname = "foo";
            final String root = "dfs";
            final String path = "\\bla\\";
    
            DfsImpl dfs = new DfsImpl(context);
    
            DfsReferralDataImpl dr = new DfsReferralDataImpl() {
    
                @Override
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sun Mar 01 09:46:04 GMT 2020
    - 13.5K bytes
    - Viewed (0)
Back to top