Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 731 for input_stream (0.15 sec)

  1. platforms/core-execution/hashing/src/main/java/org/gradle/internal/hash/DefaultFileHasher.java

    import java.io.IOException;
    import java.io.InputStream;
    import java.io.UncheckedIOException;
    
    public class DefaultFileHasher implements FileHasher {
        private final StreamHasher streamHasher;
    
        public DefaultFileHasher(StreamHasher streamHasher) {
            this.streamHasher = streamHasher;
        }
    
        @Override
        public HashCode hash(File file) {
            InputStream inputStream;
            try {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:43:29 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/core/io/InputStreamUtil.java

                throw new IORuntimeException(e);
            }
        }
    
        /**
         * {@link InputStream}をリセットします。
         *
         * @param is
         *            入力ストリーム。{@literal null}であってはいけません
         * @see InputStream#reset()
         */
        public static void reset(final InputStream is) {
            assertArgumentNotNull("is", is);
    
            try {
                is.reset();
            } catch (final IOException e) {
    Registered: Wed Jun 12 12:50:12 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  3. platforms/jvm/normalization-java/src/main/java/org/gradle/api/internal/changedetection/state/LineEndingNormalizingInputStreamHasher.java

         *
         * @param inputStream The input stream to hash
         * @return An {@link Optional} containing the {@link HashCode} or empty if the file is binary
         * @throws IOException
         */
        public Optional<HashCode> hashContent(InputStream inputStream) throws IOException {
            return hash(inputStream);
        }
    
        /**
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 15:09:49 UTC 2023
    - 4.3K bytes
    - Viewed (0)
  4. platforms/core-runtime/serialization/src/test/groovy/org/gradle/internal/serialize/AbstractCodecTest.groovy

                assert content == [0xc4, 0xc5, 0xc6] as byte[]
    
                assert decoder.inputStream.read() == -1
                assert decoder.inputStream.read(buffer) == -1
                assert decoder.inputStream.read(buffer, 0, 1) == -1
            }
        }
    
        def "ignores close on InputStream"() {
            def inputStream = Mock(InputStream)
    
            when:
            decodeFrom(inputStream) { Decoder decoder ->
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Apr 15 16:06:56 UTC 2024
    - 14.9K bytes
    - Viewed (0)
  5. platforms/software/dependency-management/src/test/groovy/org/gradle/internal/resource/transfer/ProgressLoggingExternalResourceUploaderTest.groovy

            then:
            1 * resource.open() >> inputStream
            1 * resource.contentLength >> 1072
            1 * delegate.upload(_, location) >> { resource, destination ->
                def stream = resource.open();
                assert stream.read(new byte[1024]) == 1024
                assert stream.read(new byte[1024]) == 48
            }
            1 * inputStream.read(_, 0, 1024) >> 1024
            1 * inputStream.read(_, 0, 1024) >> 48
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Mar 08 12:31:19 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  6. platforms/core-runtime/io/src/main/java/org/gradle/internal/io/StreamByteBuffer.java

        }
    
        public static StreamByteBuffer of(InputStream inputStream) throws IOException {
            StreamByteBuffer buffer = new StreamByteBuffer(chunkSizeInDefaultRange(inputStream.available()));
            buffer.readFully(inputStream);
            return buffer;
        }
    
        public static StreamByteBuffer of(InputStream inputStream, int len) throws IOException {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 12 08:51:14 UTC 2024
    - 16.6K bytes
    - Viewed (0)
  7. platforms/software/resources/src/test/groovy/org/gradle/internal/resource/transfer/UrlExternalResourceTest.groovy

                String execute(InputStream inputStream, ExternalResourceMetaData metaData) throws IOException {
                    assert metaData.location.toASCIIString() == file.toURI().toASCIIString()
                    assert metaData.lastModified == new Date(file.lastModified())
                    assert metaData.contentLength == 4
                    assert metaData.sha1 == null
                    assert inputStream.text == "1234"
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 12 19:38:08 UTC 2023
    - 3.7K bytes
    - Viewed (0)
  8. platforms/core-configuration/configuration-cache/src/main/kotlin/org/gradle/internal/cc/impl/EncryptionService.kt

                }
                throw e
            }
            return outerCloseable
        }
    
        private
        fun decryptingInputStream(inputStream: InputStream): InputStream {
            val cipher = newEncryptionSession().decryptingCipher(inputStream::read)
            return CipherInputStream(inputStream, cipher)
        }
    
        private
        fun encryptingOutputStream(outputStream: OutputStream): OutputStream {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:30 UTC 2024
    - 11.9K bytes
    - Viewed (0)
  9. platforms/core-runtime/files/src/main/java/org/gradle/api/internal/file/archive/impl/AbstractZipEntry.java

            return withInputStream(new IoFunction<InputStream, byte[]>() {
                @Override
                public byte[] apply(InputStream inputStream) throws IOException {
                    int size = size();
                    if (size >= 0) {
                        byte[] content = new byte[size];
                        ByteStreams.readFully(inputStream, content);
                        return content;
                    } else {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 12:11:00 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  10. platforms/core-runtime/messaging/src/main/java/org/gradle/internal/remote/internal/KryoBackedMessageSerializer.java

    import org.gradle.internal.serialize.kryo.KryoBackedEncoder;
    
    import java.io.InputStream;
    import java.io.OutputStream;
    
    public class KryoBackedMessageSerializer implements MessageSerializer {
        @Override
        public Decoder newDecoder(InputStream inputStream) {
            return new KryoBackedDecoder(inputStream);
        }
    
        @Override
        public FlushableEncoder newEncoder(OutputStream outputStream) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:59:22 UTC 2023
    - 1.3K bytes
    - Viewed (0)
Back to top