Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for zipStream (0.18 sec)

  1. testing/soak/src/integTest/groovy/org/gradle/resolve/DependencyResolutionStressTest.groovy

                def zipStream = new ZipOutputStream(outputStream)
                zipStream.putNextEntry(new ZipEntry("a"))
                writeLongString(zipStream)
                zipStream.closeEntry()
                zipStream.putNextEntry(new ZipEntry("b"))
                writeLongString(zipStream)
                zipStream.closeEntry()
                zipStream.finish()
            }
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 10.2K bytes
    - Viewed (0)
  2. platforms/core-runtime/files/src/test/groovy/org/gradle/api/internal/file/archive/impl/ZipFileFixture.groovy

            def file = temporaryFolder.file("foo.txt")
            file.text = ZIP_ENTRY_CONTENT
            def zipStream = new ZipOutputStream(zipFile.newOutputStream())
            def zipEntry = new ZipEntry(file.name)
            zipEntry.setSize(file.size())
            zipStream.putNextEntry(zipEntry)
            zipStream.write(file.bytes)
            zipStream.close()
            return zipFile
        }
    
        abstract TestNameTestDirectoryProvider getTemporaryFolder()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:55:52 UTC 2023
    - 1.6K bytes
    - Viewed (0)
  3. testing/internal-integ-testing/src/main/groovy/org/gradle/test/fixtures/AbstractModule.groovy

            writeContents(bos, cl)
    
            ZipArchiveOutputStream zipStream = new ZipArchiveOutputStream(testFile)
            try {
                def entry = new ZipArchiveEntry(testFile.name)
                entry.setTime(lmd.getTime())
                zipStream.putArchiveEntry(entry)
                zipStream << bos.toByteArray()
                zipStream.closeArchiveEntry()
                zipStream.finish()
            } finally {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 5K bytes
    - Viewed (0)
  4. subprojects/core/src/main/java/org/gradle/util/internal/JarUtil.java

            boolean entryExtracted = false;
    
            ZipInputStream zipStream = null;
            BufferedOutputStream extractTargetStream = null;
            try {
                zipStream = new ZipInputStream(new FileInputStream(jarFile));
                extractTargetStream = new BufferedOutputStream(new FileOutputStream(extractToFile));
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Aug 07 19:17:11 UTC 2023
    - 5.6K bytes
    - Viewed (0)
  5. testing/internal-testing/src/main/groovy/org/gradle/test/fixtures/file/TestFileHelper.groovy

            def outStr = new FileOutputStream(compressedFile)
            try {
                outStr.write('BZ'.getBytes("us-ascii"))
                def zipStream = new CBZip2OutputStream(outStr)
                zipStream.bytes = file.bytes
                zipStream.close()
            } finally {
                outStr.close()
            }
        }
    
        void gzipTo(TestFile compressedFile) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 10.8K bytes
    - Viewed (0)
  6. operator/cmd/mesh/manifest-generate_test.go

    	chartSource                 chartSourceType
    }
    
    func init() {
    	kubeClientFunc = func() (kube.CLIClient, error) {
    		return nil, nil
    	}
    }
    
    func extract(gzipStream io.Reader, destination string) error {
    	uncompressedStream, err := gzip.NewReader(gzipStream)
    	if err != nil {
    		return fmt.Errorf("create gzip reader: %v", err)
    	}
    
    	tarReader := tar.NewReader(uncompressedStream)
    
    	for {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Jun 04 18:05:06 UTC 2024
    - 43.5K bytes
    - Viewed (0)
Back to top