Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 2,698 for copyTo (0.11 sec)

  1. android/guava/src/com/google/common/io/CharSource.java

       *       one with {@link CharSequence#charAt(int)}.
       *   <li>use {@link Appendable#append(CharSequence)} in {@link #copyTo(Appendable)} and {@link
       *       #copyTo(CharSink)}. We know this is correct since strings are immutable and so the length
       *       can't change, and it is faster because many writers and appendables are optimized for
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Jul 16 17:42:14 UTC 2025
    - 25.7K bytes
    - Viewed (0)
  2. guava/src/com/google/common/io/CharSource.java

       *       one with {@link CharSequence#charAt(int)}.
       *   <li>use {@link Appendable#append(CharSequence)} in {@link #copyTo(Appendable)} and {@link
       *       #copyTo(CharSink)}. We know this is correct since strings are immutable and so the length
       *       can't change, and it is faster because many writers and appendables are optimized for
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Jul 16 17:42:14 UTC 2025
    - 25.3K bytes
    - Viewed (0)
  3. src/test/java/jcifs/SmbResourceTest.java

            @Test
            @DisplayName("copy operation should work correctly")
            void testCopyTo() throws CIFSException {
                // Given
                SmbResource destination = mock(SmbResource.class);
    
                // When/Then
                assertDoesNotThrow(() -> mockResource.copyTo(destination), "Copy operation should not throw exception");
                verify(mockResource).copyTo(destination);
            }
    
            @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 35K bytes
    - Viewed (0)
  4. 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)
  5. src/main/java/jcifs/SmbResource.java

        /**
         * This method will copy the file or directory represented by this
         * <code>SmbResource</code> and it's sub-contents to the location specified by the
         * <code>dest</code> parameter. This file and the destination file do not
         * need to be on the same host. This operation does not copy extended
         * file attributes such as ACLs but it does copy regular attributes as
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 28K bytes
    - Viewed (1)
  6. 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)
  7. 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)
  8. src/main/java/jcifs/smb/SmbCopyUtil.java

                            final Smb2IoctlRequest copy = new Smb2IoctlRequest(sh.getConfig(),
                                    write ? Smb2IoctlRequest.FSCTL_SRV_COPYCHUNK_WRITE : Smb2IoctlRequest.FSCTL_SRV_COPYCHUNK, dfd.getFileId());
                            copy.setFlags(Smb2IoctlRequest.SMB2_O_IOCTL_IS_FSCTL);
                            copy.setInputData(new SrvCopychunkCopy(resumeKey, chunkInfo));
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 16.6K bytes
    - Viewed (0)
  9. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ImmutableSet.java

        Collections.addAll(all, others);
        return copyOf(all.iterator());
      }
    
      /** ImmutableSet.of API that is friendly to use from JavaScript. */
      @JsMethod(name = "of")
      static <E> ImmutableSet<E> jsOf(E... elements) {
        return copyOf(elements);
      }
    
      @JsMethod
      public static <E> ImmutableSet<E> copyOf(E[] elements) {
        checkNotNull(elements);
        switch (elements.length) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Aug 06 18:32:41 UTC 2025
    - 8.3K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/collect/ImmutableBiMapTest.java

        ImmutableBiMap<String, Integer> copy =
            ImmutableBiMap.copyOf(Collections.<String, Integer>emptyMap());
        assertEquals(Collections.<String, Integer>emptyMap(), copy);
        assertSame(copy, ImmutableBiMap.copyOf(copy));
        assertSame(ImmutableBiMap.of(), copy);
      }
    
      public void testCopyOfSingletonMap() {
        ImmutableBiMap<String, Integer> copy = ImmutableBiMap.copyOf(singletonMap("one", 1));
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 21.2K bytes
    - Viewed (0)
Back to top