Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for createArchiveOutputStream (0.82 sec)

  1. subprojects/core/src/main/java/org/gradle/api/internal/file/archive/compression/SimpleCompressor.java

    import java.io.File;
    import java.io.FileOutputStream;
    import java.io.OutputStream;
    
    public class SimpleCompressor implements ArchiveOutputStreamFactory {
    
        @Override
        public OutputStream createArchiveOutputStream(File destination) {
            try {
                return new FileOutputStream(destination);
            } catch (Exception e) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 17 10:39:11 UTC 2019
    - 1.2K bytes
    - Viewed (0)
  2. subprojects/core/src/main/java/org/gradle/api/internal/file/copy/ZipCompressor.java

    import java.io.File;
    import java.io.IOException;
    
    public interface ZipCompressor extends ArchiveOutputStreamFactory {
    
        @Override
        ZipArchiveOutputStream createArchiveOutputStream(File destination) throws IOException;
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Oct 19 09:01:56 UTC 2022
    - 1K bytes
    - Viewed (0)
  3. subprojects/core/src/main/java/org/gradle/api/internal/file/archive/compression/ArchiveOutputStreamFactory.java

        /**
         * Returns the output stream that is able to compress into the destination file
         *
         * @param destination the destination of the archive output stream
         */
        OutputStream createArchiveOutputStream(File destination) throws IOException;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 02 16:56:13 UTC 2016
    - 1.1K bytes
    - Viewed (0)
  4. subprojects/core/src/main/java/org/gradle/api/internal/file/copy/DefaultZipCompressor.java

            this.entryCompressionMethod = entryCompressionMethod;
            zip64Mode = allowZip64Mode ? Zip64Mode.AsNeeded : Zip64Mode.Never;
        }
    
        @Override
        public ZipArchiveOutputStream createArchiveOutputStream(File destination) throws IOException {
            ZipArchiveOutputStream outStream = new ZipArchiveOutputStream(destination);
            try {
                outStream.setUseZip64(zip64Mode);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Oct 19 09:01:56 UTC 2022
    - 1.9K bytes
    - Viewed (0)
  5. subprojects/core/src/main/java/org/gradle/api/internal/file/archive/TarCopyAction.java

        }
    
        @Override
        public WorkResult execute(final CopyActionProcessingStream stream) {
    
            final OutputStream outStr;
            try {
                outStr = compressor.createArchiveOutputStream(tarFile);
            } catch (Exception e) {
                throw new GradleException(String.format("Could not create TAR '%s'.", tarFile), e);
            }
    
            try {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Nov 08 14:16:53 UTC 2023
    - 5.7K bytes
    - Viewed (0)
  6. subprojects/core/src/test/groovy/org/gradle/api/internal/file/archive/ZipCopyActionTest.groovy

                throw new Zip64RequiredException("xyz")
            }
    
            def compressor = new DefaultZipCompressor(false, ZipArchiveOutputStream.STORED) {
                @Override
                ZipArchiveOutputStream createArchiveOutputStream(File destination) {
                    zipOutputStream
                }
            }
    
            def docRegistry = Mock(DocumentationRegistry)
            1 * docRegistry.getDslRefForProperty(Zip, "zip64") >> "doc url"
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Jun 22 14:26:33 UTC 2023
    - 6.6K bytes
    - Viewed (0)
  7. subprojects/core/src/main/java/org/gradle/api/internal/file/archive/ZipCopyAction.java

        }
    
        @Override
        public WorkResult execute(final CopyActionProcessingStream stream) {
            final ZipArchiveOutputStream zipOutStr;
    
            try {
                zipOutStr = compressor.createArchiveOutputStream(zipFile);
            } catch (Exception e) {
                throw new GradleException(String.format("Could not create ZIP '%s'.", zipFile), e);
            }
    
            try {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Nov 08 14:16:53 UTC 2023
    - 6.6K bytes
    - Viewed (0)
Back to top