Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 125 for Copyto (0.1 sec)

  1. platforms/core-configuration/file-collections/src/main/java/org/gradle/api/internal/file/AbstractFileTreeElement.java

            return getRelativePath().getLastName();
        }
    
        @Override
        public String getPath() {
            return getRelativePath().getPathString();
        }
    
        @Override
        public void copyTo(OutputStream output) {
            try {
                InputStream inputStream = open();
                try {
                    IOUtils.copyLarge(inputStream, output);
                } finally {
                    inputStream.close();
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Mar 08 15:25:10 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/io/ByteSourceTest.java

        assertFalse(out.closed());
        source.copyTo(out);
        assertFalse(out.closed());
      }
    
      public void testClosesOnErrors_copyingToByteSinkThatThrows() {
        for (TestOption option : EnumSet.of(OPEN_THROWS, WRITE_THROWS, CLOSE_THROWS)) {
          TestByteSource okSource = new TestByteSource(bytes);
          assertThrows(IOException.class, () -> okSource.copyTo(new TestByteSink(option)));
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue May 07 15:26:58 UTC 2024
    - 15.4K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/ssa/fuse.go

    		max_b = nil
    	}
    
    	// copy the values
    	copyTo := 0
    	for bx := b; ; bx = bx.Succs[0].b {
    		if bx != max_b {
    			copy(t[copyTo:], bx.Values)
    		} else if copyTo != totalBeforeMax { // trust but verify.
    			panic(fmt.Errorf("totalBeforeMax (%d) != copyTo (%d), max_b=%v, b=%v, c=%v", totalBeforeMax, copyTo, max_b, b, c))
    		}
    		if bx == c {
    			break
    		}
    		copyTo += len(bx.Values)
    	}
    	c.Values = t
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 31 20:45:54 UTC 2023
    - 9K bytes
    - Viewed (0)
  4. platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/dependencies/DefaultMinimalDependencyVariant.java

            this.capabilitiesMutator = capabilitiesMutator;
            this.classifier = classifier;
            this.artifactType = artifactType;
        }
    
        @Override
        public void copyTo(AbstractExternalModuleDependency target) {
            super.copyTo(target);
            if (target instanceof DefaultMinimalDependencyVariant) {
                DefaultMinimalDependencyVariant depVariant = (DefaultMinimalDependencyVariant) target;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Nov 15 16:36:23 UTC 2023
    - 6.4K bytes
    - Viewed (0)
  5. platforms/core-configuration/file-collections/src/main/java/org/gradle/api/internal/file/UnauthorizedFileVisitDetails.java

        }
    
        @Override
        public InputStream open() {
            throw new UnsupportedOperationException();
        }
    
        @Override
        public void copyTo(OutputStream output) {
            throw new UnsupportedOperationException();
        }
    
        @Override
        public boolean copyTo(File target) {
            throw new UnsupportedOperationException();
        }
    
        @Override
        public String getName() {
            return file.getName();
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Mar 01 10:41:40 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/io/ByteSinkTest.java

          TestByteSource failSource = new TestByteSource(new byte[10], option);
          TestByteSink okSink = new TestByteSink();
          assertThrows(IOException.class, () -> failSource.copyTo(okSink));
          // ensure stream was closed IF it was opened (depends on implementation whether or not it's
          // opened at all if source.newInputStream() throws).
          assertTrue(
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 3.7K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/io/ByteSinkTest.java

          TestByteSource failSource = new TestByteSource(new byte[10], option);
          TestByteSink okSink = new TestByteSink();
          assertThrows(IOException.class, () -> failSource.copyTo(okSink));
          // ensure stream was closed IF it was opened (depends on implementation whether or not it's
          // opened at all if source.newInputStream() throws).
          assertTrue(
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 3.7K bytes
    - Viewed (0)
  8. subprojects/core/src/test/groovy/org/gradle/process/internal/JvmOptionsTest.groovy

            expect:
            createOpts().allJvmArgs.contains("-Dfile.encoding=${defaultCharset}".toString());
        }
    
        def "copyTo respects defaultFileEncoding"() {
            JavaForkOptions target = Mock(JavaForkOptions)
            when:
            parse("-Dfile.encoding=UTF-8 -Dfoo.encoding=blah -Dfile.encoding=UTF-16").copyTo(target)
            then:
            1 * target.systemProperties({
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 05 19:36:14 UTC 2023
    - 10.8K bytes
    - Viewed (0)
  9. platforms/core-configuration/file-collections/src/main/java/org/gradle/api/internal/file/collections/GeneratedSingletonFileTree.java

                if (file == null) {
                    file = createFileInstance(fileName);
                    if (!file.exists()) {
                        fileGenerationListener.execute(file);
                        copyTo(file);
                    } else {
                        updateFileOnlyWhenGeneratedContentChanges();
                    }
                    // round to nearest second
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 7K bytes
    - Viewed (0)
  10. platforms/core-configuration/model-core/src/main/java/org/gradle/api/internal/provider/sources/process/DelegatingBaseExecSpec.java

            getDelegate().environment(name, value);
            return this;
        }
    
        @Override
        default ProcessForkOptions copyTo(ProcessForkOptions options) {
            getDelegate().copyTo(options);
            return this;
        }
    
        BaseExecSpec getDelegate();
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 3.9K bytes
    - Viewed (0)
Back to top