Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 74 for catch (0.04 sec)

  1. src/main/java/jcifs/smb1/smb1/SmbFileInputStream.java

     *
     * @throws IOException if a network error occurs
     */
    
        public void close() throws IOException {
            try {
                file.close();
                tmp = null;
            } catch (SmbException se) {
                throw seToIoe(se);
            }
        }
    
    /**
     * Reads a byte of data from this input stream.
     *
     * @throws IOException if a network error occurs
     */
    
    Registered: Wed Jun 12 15:45:55 UTC 2024
    - Last Modified: Fri Mar 22 21:10:40 UTC 2019
    - 7.9K bytes
    - Viewed (0)
  2. src/test/java/jcifs/tests/NamingTest.java

                    break;
                default:
                    Assume.assumeTrue("Unhandled OEM encoding " + oemEncoding, false);
                }
            }
            catch ( UnsupportedCharsetException e ) {
                Assume.assumeTrue("Charset is not supported on this VM " + oemEncoding, false);
            }
            runFilenameTest(splitString(str, 8));
        }
    
    
    Registered: Wed Jun 12 15:45:55 UTC 2024
    - Last Modified: Sat Jun 06 10:48:05 UTC 2020
    - 7K bytes
    - Viewed (0)
  3. src/main/java/jcifs/smb/SmbTreeHandleImpl.java

            try ( SmbSessionImpl session = this.treeConnection.getSession();
                  SmbTransportImpl transport = session.getTransport() ) {
                return transport.isSMB2();
            }
            catch ( SmbException e ) {
                log.debug("Failed to connect for determining SMB2 support", e);
                return false;
            }
        }
    
    Registered: Wed Jun 12 15:45:55 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 8.9K bytes
    - Viewed (0)
  4. src/main/java/jcifs/http/NtlmServlet.java

                if ( this.realm == null )
                    this.realm = "jCIFS";
    
                this.transportContext = new BaseContext(new PropertyConfiguration(p));;
            }
            catch ( CIFSException ex ) {
                throw new ServletException("Failed to initialize config", ex);
            }
        }
    
    
        @Override
    Registered: Wed Jun 12 15:45:55 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 7.6K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb1/smb1/SmbComTreeConnectAndXResponse.java

            int start = bufferIndex;
    
            int len = readStringLength( buffer, bufferIndex, 32 );
            try {
                service = new String( buffer, bufferIndex, len, "ASCII" );
            } catch( UnsupportedEncodingException uee ) {
                return 0;
            }
            bufferIndex += len + 1;
            // win98 observed not returning nativeFileSystem
    Registered: Wed Jun 12 15:45:55 UTC 2024
    - Last Modified: Fri Mar 22 21:10:40 UTC 2019
    - 2.9K bytes
    - Viewed (0)
  6. src/main/java/jcifs/internal/smb1/trans/nt/NtTransQuerySecurityDescResponse.java

                return 4;
    
            try {
                this.securityDescriptor = new SecurityDescriptor();
                bufferIndex += this.securityDescriptor.decode(buffer, bufferIndex, len);
            }
            catch ( IOException ioe ) {
                throw new RuntimeCIFSException(ioe.getMessage());
            }
    
            return bufferIndex - start;
        }
    
    
        @Override
        public String toString () {
    Registered: Wed Jun 12 15:45:55 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 2.8K bytes
    - Viewed (0)
  7. src/main/java/jcifs/smb1/smb1/NetServerEnum2.java

            int start = dstIndex;
            byte[] descr;
            int which = subCommand == NET_SERVER_ENUM2 ? 0 : 1;
    
            try {
                descr = DESCR[which].getBytes( "ASCII" );
            } catch( UnsupportedEncodingException uee ) {
                return 0;
            }
    
            writeInt2( subCommand & 0xFF, dst, dstIndex );
            dstIndex += 2;
            System.arraycopy( descr, 0, dst, dstIndex, descr.length );
    Registered: Wed Jun 12 15:45:55 UTC 2024
    - Last Modified: Fri Mar 22 21:10:40 UTC 2019
    - 3.5K bytes
    - Viewed (0)
  8. src/main/java/jcifs/internal/smb1/net/NetServerEnum2.java

            int start = dstIndex;
            byte[] descr;
            int which = getSubCommand() == NET_SERVER_ENUM2 ? 0 : 1;
    
            try {
                descr = DESCR[ which ].getBytes("ASCII");
            }
            catch ( UnsupportedEncodingException uee ) {
                return 0;
            }
    
            SMBUtil.writeInt2(getSubCommand() & 0xFF, dst, dstIndex);
            dstIndex += 2;
    Registered: Wed Jun 12 15:45:55 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 4K bytes
    - Viewed (0)
  9. src/main/java/jcifs/pac/Pac.java

                        if ( log.isDebugEnabled() ) {
                            log.debug("Found unhandled PAC buffer " + bufferType);
                        }
                    }
                }
            }
            catch ( IOException e ) {
                throw new PACDecodingException("Malformed PAC", e);
            }
    
            if ( this.serverSignature == null || this.kdcSignature == null || this.logonInfo == null ) {
    Registered: Wed Jun 12 15:45:55 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 6.5K bytes
    - Viewed (0)
  10. src/main/java/jcifs/smb1/smb1/Trans2FindFirst2Response.java

                        len--;
                    }
                    str = new String( src, srcIndex, len, ServerMessageBlock.OEM_ENCODING );
                }
            } catch( UnsupportedEncodingException uee ) {
                if( log.level > 1 )
                    uee.printStackTrace( log );
            }
            return str;
        }
        int writeSetupWireFormat( byte[] dst, int dstIndex ) {
    Registered: Wed Jun 12 15:45:55 UTC 2024
    - Last Modified: Fri Mar 22 21:10:40 UTC 2019
    - 8.5K bytes
    - Viewed (0)
Back to top