Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 327 for copyTo (0.04 sec)

  1. src/test/java/jcifs/smb/SmbFileIntegrationTest.java

            assertFalse(targetFile.exists(), "Target file should not exist initially");
    
            // Copy file
            sourceFile.copyTo(targetFile);
    
            assertTrue(sourceFile.exists(), "Source file should still exist after copy");
            assertTrue(targetFile.exists(), "Target file should exist after copy");
    
            // Verify content in both files
            try (InputStream in = sourceFile.getInputStream()) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 56K bytes
    - Viewed (0)
  2. src/main/java/jcifs/smb1/smb1/SmbFile.java

         * @throws SmbException if an error occurs during the copy operation
         */
        public void copyTo(final SmbFile dest) throws SmbException {
            SmbComReadAndX req;
            SmbComReadAndXResponse resp;
            WriterThread w;
            int bsize;
            byte[][] b;
    
            /* Should be able to copy an entire share actually
             */
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 112.2K bytes
    - Viewed (0)
  3. src/main/java/jcifs/smb/SmbFile.java

                }
    
                dest.clearAttributeCache();
            } catch (SmbException e) {
                throw new CIFSException("Failed to copy resource: " + e.getMessage(), e);
            } catch (Exception e) {
                throw new CIFSException("Unexpected error during recursive copy", e);
            }
        }
    
        /**
         *
         */
        void clearAttributeCache() {
            this.attrExpiration = 0;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 103.2K bytes
    - Viewed (0)
  4. src/main/java/jcifs/util/SecureCredentialStorage.java

                    bytes[byteIndex++] = (byte) (0x80 | ((c >> 6) & 0x3F));
                    bytes[byteIndex++] = (byte) (0x80 | (c & 0x3F));
                }
            }
    
            return Arrays.copyOf(bytes, byteIndex);
        }
    
        /**
         * Convert byte array to char array (UTF-8)
         */
        private char[] bytesToChars(byte[] bytes) {
            if (bytes == null) {
                return null;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 12.7K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/CartesianList.java

        ImmutableList.Builder<List<E>> axesBuilder = new ImmutableList.Builder<>(lists.size());
        for (List<? extends E> list : lists) {
          List<E> copy = ImmutableList.copyOf(list);
          if (copy.isEmpty()) {
            return ImmutableList.of();
          }
          axesBuilder.add(copy);
        }
        return new CartesianList<>(axesBuilder.build());
      }
    
      CartesianList(ImmutableList<List<E>> axes) {
        this.axes = axes;
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Aug 31 13:15:26 UTC 2025
    - 4.7K bytes
    - Viewed (0)
  6. src/main/java/jcifs/smb/NtlmPasswordAuthentication.java

                to.hashesExternal = true;
                to.ansiHash = from.ansiHash != null ? Arrays.copyOf(from.ansiHash, from.ansiHash.length) : null;
                to.unicodeHash = from.unicodeHash != null ? Arrays.copyOf(from.unicodeHash, from.unicodeHash.length) : null;
            } else {
                NtlmPasswordAuthenticator.cloneInternal(to, from);
            }
        }
    
        /**
         * Compares two {@code NtlmPasswordAuthentication} objects for
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 9.3K bytes
    - Viewed (0)
  7. src/main/java/jcifs/internal/smb2/Smb2EncryptionContext.java

            }
    
            byte[] key = null;
            byte[] keyCopy = null;
    
            try {
                // Get the key and create a defensive copy for SecretKeySpec
                key = encrypt ? getEncryptionKey() : getDecryptionKey();
                keyCopy = Arrays.copyOf(key, key.length);
    
                // Validate key length matches expected cipher requirements
                if (keyCopy.length != keyLength) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 35.5K bytes
    - Viewed (0)
  8. src/test/java/jcifs/smb/NtlmPasswordAuthenticatorTest.java

        @DisplayName("Test password array is truly independent of input")
        public void testPasswordArrayIndependence() {
            char[] originalPassword = "IndependentPass123!".toCharArray();
            char[] passwordCopy = Arrays.copyOf(originalPassword, originalPassword.length);
    
            NtlmPasswordAuthenticator auth = new NtlmPasswordAuthenticator("user", originalPassword);
    
            // Modify the original array
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 23.3K bytes
    - Viewed (0)
  9. guava/src/com/google/common/collect/TopKSelector.java

          bufferSize = k;
          threshold = buffer[k - 1];
        }
        // Up to bufferSize, all elements of buffer are real Ts (not null unless T includes null)
        T[] topK = Arrays.copyOf(castBuffer, bufferSize);
        // we have to support null elements, so no ImmutableList for us
        return unmodifiableList(asList(topK));
      }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Aug 31 13:15:26 UTC 2025
    - 11.4K bytes
    - Viewed (0)
  10. guava-gwt/pom.xml

                      </fileset>
                    </copy>
                    <copy toDir="${project.build.directory}/guava-gwt-sources">
                      <fileset dir="${project.build.directory}/failureaccess-sources">
                        <include name="**/InternalFutures.java" />
                      </fileset>
                    </copy>
                    <copy toDir="${project.build.directory}/guava-gwt-sources">
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Sep 04 21:35:58 UTC 2025
    - 19.4K bytes
    - Viewed (0)
Back to top