Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 13 for replace (0.23 sec)

  1. src/main/java/jcifs/ntlmssp/av/AvPairs.java

                if ( p.getType() == type ) {
                    it.remove();
                }
            }
        }
    
    
        /**
         * Replace all occurances of the given type
         * 
         * @param pairs
         * @param rep
         */
        public static void replace ( List<AvPair> pairs, AvPair rep ) {
            remove(pairs, rep.getType());
            pairs.add(rep);
        }
    
    
        /**
         * 
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sun Jul 01 13:12:10 GMT 2018
    - 4.8K bytes
    - Viewed (0)
  2. src/main/java/jcifs/netbios/Lmhosts.java

                }
                else if ( line.charAt(0) == '#' ) {
                    if ( line.startsWith("#INCLUDE ") ) {
                        line = line.substring(line.indexOf('\\'));
                        String url = "smb:" + line.replace('\\', '/');
    
                        try ( InputStreamReader rdr = new InputStreamReader(new SmbFileInputStream(url, tc)) ) {
                            if ( this.alt > 0 ) {
                                try {
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sun Jul 01 13:12:10 GMT 2018
    - 6.1K bytes
    - Viewed (0)
  3. src/test/java/jcifs/tests/DfsTest.java

            String dfsShare = getDFSShare();
            URI dfsShareRoot = new URI(getTestShareURL());
            return '\\' + dfsShareRoot.getPath().substring(2 + dfsShare.length()).replace('/', '\\');
        }
    
    
        /**
         * @return
         * @throws URISyntaxException
         */
        private String getDFSShare () throws URISyntaxException {
            URI dfsRoot = new URI(getDFSRootURL());
    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)
  4. src/main/java/jcifs/smb/SmbException.java

     */
    
    public class SmbException extends CIFSException implements NtStatus, DosError, WinError {
    
        /**
         * 
         */
        private static final long serialVersionUID = 484863569441792249L;
        
        // to replace a bunch of one-off binary searches
        private static final Map<Integer, String> errorCodeMessages;
        private static final Map<Integer, String> winErrorCodeMessages;
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sun Aug 05 07:16:55 GMT 2018
    - 5.9K bytes
    - Viewed (0)
  5. src/main/java/jcifs/util/Strings.java

        private static final boolean MASK_SECRET_VALUE = System.getProperty("jcifs.maskSecretValue", "true") == "true";
        private static final String SECRET_PATTERN = "^(smb.*:).*(@.*)$";
        private static final String SECRET_MASK_REPLACE = "$1******$2";
    
        /**
         * 
         */
        private Strings () {}
    
    
        /**
         * 
         * @param str
         * @param encoding
         * @return encoded
         */
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Mon Mar 13 12:00:57 GMT 2023
    - 4.9K bytes
    - Viewed (0)
  6. src/main/java/jcifs/smb/SmbResourceLocatorImpl.java

                    this.unc = '\\' + name.replace('/', '\\') + ( trailingSlash ? "\\" : "" );
                    this.canon = context.getURLPath() + name + ( trailingSlash ? "/" : "" );
                    this.share = shr;
                }
                else {
                    this.unc = uncPath + name.replace('/', '\\') + ( trailingSlash ? "\\" : "" );
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sat Jul 20 08:24:53 GMT 2019
    - 23.9K bytes
    - Viewed (0)
  7. src/main/java/jcifs/ntlmssp/Type3Message.java

                curFlags |= 0x2; // MAC present
                AvPairs.replace(serverAvPairs, new AvFlags(curFlags));
            }
    
            AvPairs.replace(serverAvPairs, new AvTimestamp(ts));
    
            if ( targetName != null ) {
                AvPairs.replace(serverAvPairs, new AvTargetName(targetName));
            }
    
            // possibly add channel bindings
            AvPairs.replace(serverAvPairs, new AvPair(0xa, new byte[16]));
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Tue Jul 07 12:07:20 GMT 2020
    - 30.6K bytes
    - Viewed (0)
  8. src/main/java/jcifs/SmbResource.java

         * @param replace
         *            Whether an existing destination file should be replaced (only supported with SMB2)
         * @throws CIFSException
         * @throws NullPointerException
         *             If the <code>dest</code> argument is <code>null</code>
         */
        void renameTo ( SmbResource dest, boolean replace ) throws CIFSException;
    
    
        /**
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sun Dec 20 14:09:34 GMT 2020
    - 26K bytes
    - Viewed (0)
  9. src/main/java/jcifs/smb/SmbFile.java

                    req.setFileInformation(new FileRenameInformation2(dest.getUncPath().substring(1), replace));
                    withOpen(sh, Smb2CreateRequest.FILE_OPEN, FILE_WRITE_ATTRIBUTES | DELETE, FILE_SHARE_READ | FILE_SHARE_WRITE, req);
                }
                else {
                    if ( replace ) {
                        // TRANS2_SET_FILE_INFORMATION does not seem to support the SMB1 RENAME_INFO
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Mon Mar 13 12:00:57 GMT 2023
    - 81.6K bytes
    - Viewed (0)
  10. src/main/java/jcifs/smb1/netbios/Lmhosts.java

                } else if( line.charAt( 0 ) == '#' ) {
                    if( line.startsWith( "#INCLUDE " )) {
                        line = line.substring( line.indexOf( '\\' ));
                        String url = "smb1:" + line.replace( '\\', '/' );
    
                        if( alt > 0 ) {
                            try {
                                populate( new InputStreamReader( new SmbFileInputStream( url )));
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Fri Mar 22 21:10:40 GMT 2019
    - 5.8K bytes
    - Viewed (0)
Back to top