Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 74 for catch (0.04 sec)

  1. src/main/java/jcifs/smb/ShareEnumIterator.java

                        continue;
                    }
                    return nr;
                }
                catch ( CIFSException e ) {
                    log.error("Failed to apply filter", e);
                    continue;
                }
                catch ( MalformedURLException e ) {
                    log.error("Failed to create child URL", e);
                    continue;
                }
            }
            return null;
        }
    Registered: Wed Jun 12 15:45:55 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 3.5K bytes
    - Viewed (0)
  2. src/main/java/jcifs/util/Strings.java

            if ( str == null ) {
                return new byte[0];
            }
            try {
                return str.getBytes(config.getOemEncoding());
            }
            catch ( UnsupportedEncodingException e ) {
                throw new RuntimeCIFSException("Unsupported OEM encoding " + config.getOemEncoding(), e);
            }
        }
    
    
        /**
         * @param src
         * @param srcIndex
    Registered: Wed Jun 12 15:45:55 UTC 2024
    - Last Modified: Mon Mar 13 12:00:57 UTC 2023
    - 4.9K bytes
    - Viewed (0)
  3. src/test/java/jcifs/tests/OplockTests.java

                    create2.chain(new Smb2CloseRequest(sess.getConfig(), Smb2Constants.UNSPECIFIED_FILEID));
    
                    try {
                        tree.send(create2);
                    }
                    catch ( Exception e ) {
                        // timeout is expected for now as we do not ack the break
                        if ( ! ( e.getCause() instanceof RequestTimeoutException ) ) {
                            throw e;
    Registered: Wed Jun 12 15:45:55 UTC 2024
    - Last Modified: Thu Jan 05 13:09:03 UTC 2023
    - 6.1K bytes
    - Viewed (0)
  4. src/main/java/jcifs/smb1/smb1/TestLocking.java

                            }
                            in.close();
                        }
                    } catch (IOException ioe) {
                        System.err.println(ioe.getMessage());
    //ioe.printStackTrace(System.err);
                    }
    
                }
            } catch (Exception e) {
                e.printStackTrace();
            } finally {
                numComplete++;
            }
        }
    
    Registered: Wed Jun 12 15:45:55 UTC 2024
    - Last Modified: Fri Mar 22 21:10:40 UTC 2019
    - 3.4K bytes
    - Viewed (0)
  5. src/main/java/jcifs/pac/kerberos/KerberosApRequest.java

            try {
                try ( ASN1InputStream stream = new ASN1InputStream(new ByteArrayInputStream(token)) ) {
                    sequence = ASN1Util.as(ASN1Sequence.class, stream);
                }
            }
            catch ( IOException e ) {
                throw new PACDecodingException("Malformed Kerberos Ticket", e);
            }
            return sequence;
        }
    
    Registered: Wed Jun 12 15:45:55 UTC 2024
    - Last Modified: Mon Oct 02 12:02:06 UTC 2023
    - 3.9K bytes
    - Viewed (0)
  6. src/main/java/jcifs/smb1/util/HMACT64.java

            }
            for (int i = length; i < BLOCK_LENGTH; i++) {
                ipad[i] = IPAD;
                opad[i] = OPAD;
            }
            try {
                md5 = MessageDigest.getInstance("MD5");
            } catch (Exception ex) {
                throw new IllegalStateException(ex.getMessage());
            }
            engineReset();
        }
    
        private HMACT64(HMACT64 hmac) throws CloneNotSupportedException {
            super("HMACT64");
    Registered: Wed Jun 12 15:45:55 UTC 2024
    - Last Modified: Fri Mar 22 20:39:42 UTC 2019
    - 3.4K bytes
    - Viewed (0)
  7. src/main/java/jcifs/smb/DirFileEntryEnumIterator2.java

                createResp = th.send(create);
            }
            catch ( SmbException e ) {
                Smb2CreateResponse cr = create.getResponse();
                if ( cr != null && cr.isReceived() && cr.getStatus() == NtStatus.NT_STATUS_OK ) {
                    try {
                        th.send(new Smb2CloseRequest(th.getConfig(), cr.getFileId()));
                    }
                    catch ( SmbException e2 ) {
                        e.addSuppressed(e2);
    Registered: Wed Jun 12 15:45:55 UTC 2024
    - Last Modified: Sun Dec 20 16:15:08 UTC 2020
    - 5.7K bytes
    - Viewed (0)
  8. src/main/java/jcifs/smb1/smb1/TransactNamedPipeInputStream.java

            int result = -1;
    
            synchronized( lock ) {
                try {
                    while( used == 0 ) {
                        lock.wait();
                    }
                } catch( InterruptedException ie ) {
                    throw new IOException( ie.getMessage() );
                }
                result = pipe_buf[beg_idx] & 0xFF;
                beg_idx = ( beg_idx + 1 ) % pipe_buf.length;
            }
    Registered: Wed Jun 12 15:45:55 UTC 2024
    - Last Modified: Fri Mar 22 21:10:40 UTC 2019
    - 4.6K bytes
    - Viewed (0)
  9. src/main/java/jcifs/context/CIFSContextWrapper.java

         * @see jcifs.CIFSContext#get(java.lang.String)
         */
        @Override
        public SmbResource get ( String url ) throws CIFSException {
            try {
                return new SmbFile(url, this);
            }
            catch ( MalformedURLException e ) {
                throw new CIFSException("Invalid URL " + url, e);
            }
        }
    
    
        /**
         * 
         * {@inheritDoc}
         *
    Registered: Wed Jun 12 15:45:55 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 4.4K bytes
    - Viewed (0)
  10. src/main/java/jcifs/smb1/ntlmssp/Type1Message.java

            DEFAULT_DOMAIN = Config.getProperty("jcifs.smb1.smb.client.domain", null);
            String defaultWorkstation = null;
            try {
                defaultWorkstation = NbtAddress.getLocalHost().getHostName();
            } catch (UnknownHostException ex) { }
            DEFAULT_WORKSTATION = defaultWorkstation;
        }
    
        /**
         * Creates a Type-1 message using default values from the current
         * environment.
         */
    Registered: Wed Jun 12 15:45:55 UTC 2024
    - Last Modified: Fri Mar 22 20:39:42 UTC 2019
    - 8K bytes
    - Viewed (0)
Back to top