Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 731 for input_stream (0.24 sec)

  1. platforms/documentation/docs/src/snippets/multiproject/dependencies-outgoingArtifact/kotlin/consumer/src/main/java/Application.java

    import java.io.IOException;
    import java.io.InputStream;
    import java.util.Properties;
    
    public class Application {
        public Properties readBuildInfo() throws IOException {
            Properties prop = new Properties();
            InputStream inputStream = null;
    
            try {
                inputStream = Application.class.getClassLoader().getResourceAsStream("build-info.properties");
                prop.load(inputStream);
            } finally {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 680 bytes
    - Viewed (0)
  2. platforms/core-execution/hashing/src/main/java/org/gradle/internal/hash/DefaultStreamHasher.java

        @Override
        public HashCode hash(InputStream inputStream) {
            try {
                return doHash(inputStream, ByteStreams.nullOutputStream());
            } catch (IOException e) {
                throw new UncheckedIOException("Failed to create MD5 hash for file content.", e);
            }
        }
    
        @Override
        public HashCode hashCopy(InputStream inputStream, OutputStream outputStream) throws IOException {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:43:29 UTC 2023
    - 2.5K bytes
    - Viewed (0)
  3. platforms/core-execution/build-cache/src/jmh/java/org/gradle/caching/internal/tasks/PackerUtils.java

    import java.io.IOException;
    import java.io.InputStream;
    import java.io.OutputStream;
    
    public class PackerUtils {
        public static void packEntry(DataSource entry, OutputStream outputStream, byte[] buffer) throws IOException {
            InputStream inputStream = entry.openInput();
            try {
                IOUtils.copyLarge(inputStream, outputStream, buffer);
            } finally {
                inputStream.close();
            }
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:43:12 UTC 2023
    - 1.5K bytes
    - Viewed (0)
  4. subprojects/core/src/main/java/org/gradle/process/internal/ProcessStreamsSpec.java

     */
    
    package org.gradle.process.internal;
    
    import java.io.InputStream;
    import java.io.OutputStream;
    
    
    public class ProcessStreamsSpec {
    
        private InputStream standardInput;
        private OutputStream standardOutput;
        private OutputStream errorOutput;
    
        public ProcessStreamsSpec setStandardInput(InputStream inputStream) {
            if (inputStream == null) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 06 16:16:31 UTC 2020
    - 1.8K bytes
    - Viewed (0)
  5. subprojects/core/src/main/java/org/gradle/api/internal/file/archive/TarFileTree.java

            });
        }
    
        private void visitImpl(FileVisitor visitor, File expandedDir, InputStream inputStream) throws IOException {
            checkFormat(inputStream);
    
            AtomicBoolean stopFlag = new AtomicBoolean();
            DetailsImpl.NoCloseTarArchiveInputStream tar = new DetailsImpl.NoCloseTarArchiveInputStream(inputStream);
            ReadableResourceInternal resource = this.resource.get();
            TarArchiveEntry entry;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Mar 26 15:15:04 UTC 2024
    - 9.8K bytes
    - Viewed (0)
  6. fess-crawler/src/test/java/org/codelibs/fess/crawler/extractor/impl/XmlExtractorTest.java

        public void test_getXml_sjis() {
            final InputStream in = ResourceUtil.getResourceAsStream("extractor/test_sjis.xml");
            final String content = xmlExtractor.getText(in, null).getContent();
            CloseableUtil.closeQuietly(in);
            logger.info(content);
            assertTrue(content.contains("ใƒ†ใ‚นใƒˆ"));
        }
    
        public void test_getXml_entity() {
    Registered: Wed Jun 12 15:17:51 UTC 2024
    - Last Modified: Thu Feb 22 01:36:27 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  7. platforms/software/dependency-management/src/test/groovy/org/gradle/internal/resource/transfer/ProgressLoggingExternalResourceAccessorTest.groovy

            result == "result"
    
            and:
            1 * action.execute(_, _) >> { inputStream, metaData ->
                inputStream.read(new byte[2])
                inputStream.read(new byte[560])
                inputStream.read(new byte[1000])
                inputStream.read(new byte[1600])
                inputStream.read(new byte[1024])
                inputStream.read(new byte[1024])
                "result"
            }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Mar 08 12:31:19 UTC 2024
    - 7.5K bytes
    - Viewed (0)
  8. platforms/ide/ide/src/main/java/org/gradle/plugins/ide/internal/generator/AbstractPersistableConfigurationObject.java

                }
                try {
                    load(inputStream);
                } finally {
                    inputStream.close();
                }
            } catch (Exception e) {
                throw UncheckedException.throwAsUncheckedException(e);
            }
    
        }
    
        public abstract void load(InputStream inputStream) throws Exception;
    
        @Override
        public void store(File outputFile) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:12 UTC 2023
    - 2.8K bytes
    - Viewed (0)
  9. platforms/core-runtime/files/src/main/java/org/gradle/api/internal/file/archive/impl/StreamZipInput.java

    import java.io.IOException;
    import java.io.InputStream;
    import java.util.Iterator;
    import java.util.zip.ZipInputStream;
    
    public class StreamZipInput implements ZipInput {
    
        private final ZipInputStream inputStream;
    
        public StreamZipInput(InputStream inputStream) {
            this.inputStream = new ZipInputStream(inputStream);
        }
    
        @Override
        public Iterator<ZipEntry> iterator() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 12:11:00 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  10. platforms/documentation/docs/src/samples/templates/build-src-plugin-java-module-transform/buildSrc/src/main/java/org/gradle/sample/transform/javamodules/ExtraModuleInfoTransform.java

        private static void copyEntries(JarInputStream inputStream, JarOutputStream outputStream) throws IOException {
            JarEntry jarEntry = inputStream.getNextJarEntry();
            while (jarEntry != null) {
                outputStream.putNextEntry(jarEntry);
                outputStream.write(inputStream.readAllBytes());
                outputStream.closeEntry();
                jarEntry = inputStream.getNextJarEntry();
            }
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 7.2K bytes
    - Viewed (0)
Back to top