Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 203 for ByteArrayInputStream (0.89 sec)

  1. android/guava-tests/test/com/google/common/io/LittleEndianDataOutputStreamTest.java

     * limitations under the License.
     */
    
    package com.google.common.io;
    
    import com.google.common.base.Charsets;
    import com.google.common.primitives.Bytes;
    import java.io.ByteArrayInputStream;
    import java.io.ByteArrayOutputStream;
    import java.io.DataInput;
    import java.io.DataInputStream;
    import java.io.IOException;
    import junit.framework.TestCase;
    
    /**
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 4.7K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/io/LittleEndianDataOutputStreamTest.java

     * limitations under the License.
     */
    
    package com.google.common.io;
    
    import com.google.common.base.Charsets;
    import com.google.common.primitives.Bytes;
    import java.io.ByteArrayInputStream;
    import java.io.ByteArrayOutputStream;
    import java.io.DataInput;
    import java.io.DataInputStream;
    import java.io.IOException;
    import junit.framework.TestCase;
    
    /**
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 4.7K bytes
    - Viewed (0)
  3. platforms/software/resources/src/main/java/org/gradle/internal/resource/local/ByteArrayReadableContent.java

     * limitations under the License.
     */
    
    package org.gradle.internal.resource.local;
    
    import org.gradle.internal.resource.ReadableContent;
    
    import java.io.ByteArrayInputStream;
    import java.io.InputStream;
    
    public class ByteArrayReadableContent implements ReadableContent {
        private final byte[] source;
    
        public ByteArrayReadableContent(byte[] source) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 12 19:38:08 UTC 2023
    - 1.1K bytes
    - Viewed (0)
  4. platforms/core-runtime/messaging/src/test/groovy/org/gradle/internal/stream/EncodedStreamTest.groovy

            def outputStream = new ByteArrayOutputStream()
            def encoder = new EncodedStream.EncodedOutput(outputStream)
    
            when:
            encoder.flush()
    
            then:
            def inputStream = new ByteArrayInputStream(outputStream.toByteArray())
            def decoder = new EncodedStream.EncodedInput(inputStream)
            decoder.read() < 0
        }
    
        def "can encode and decode a string"() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:59:22 UTC 2023
    - 2.2K bytes
    - Viewed (0)
  5. platforms/core-execution/hashing/src/test/groovy/org/gradle/internal/hash/DefaultStreamHasherTest.groovy

        def "can hash input"() {
            def input = new ByteArrayInputStream("hello".bytes)
            when:
            def hash = new DefaultStreamHasher().hash(input)
            then:
            hash.toString() == "af67a92e9f73b51572e9b94e343d2840"
        }
    
        def "can hash input while copying it"() {
            def input = new ByteArrayInputStream("hello".bytes)
            def output = new ByteArrayOutputStream()
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:43:29 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  6. platforms/extensibility/unit-test-fixtures/src/main/java/org/gradle/testfixtures/internal/TestInMemoryIndexedCache.java

        @Override
        public V getIfPresent(K key) {
            byte[] serialised = entries.get(key);
            if (serialised == null) {
                return null;
            }
            try {
                ByteArrayInputStream instr = new ByteArrayInputStream(serialised);
                InputStreamBackedDecoder decoder = new InputStreamBackedDecoder(instr);
                return valueSerializer.read(decoder);
            } catch (Exception e) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 13 21:54:27 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  7. platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/verification/signatures/PublicKeySerializer.java

    import java.io.ByteArrayInputStream;
    
    class PublicKeySerializer extends AbstractSerializer<PGPPublicKey> {
    
        @Override
        public PGPPublicKey read(Decoder decoder) throws Exception {
            byte[] encoded = decoder.readBinary();
            PGPObjectFactory objectFactory = new PGPObjectFactory(
                PGPUtil.getDecoderStream(new ByteArrayInputStream(encoded)), new BcKeyFingerprintCalculator());
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 2K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/io/TestReader.java

    import java.io.ByteArrayInputStream;
    import java.io.FilterReader;
    import java.io.IOException;
    import java.io.InputStreamReader;
    
    /** @author Colin Decker */
    public class TestReader extends FilterReader {
    
      private final TestInputStream in;
    
      public TestReader(TestOption... options) throws IOException {
        this(new TestInputStream(new ByteArrayInputStream(new byte[10]), options));
      }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 1.3K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/io/TestReader.java

    import java.io.ByteArrayInputStream;
    import java.io.FilterReader;
    import java.io.IOException;
    import java.io.InputStreamReader;
    
    /** @author Colin Decker */
    public class TestReader extends FilterReader {
    
      private final TestInputStream in;
    
      public TestReader(TestOption... options) throws IOException {
        this(new TestInputStream(new ByteArrayInputStream(new byte[10]), options));
      }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 1.3K bytes
    - Viewed (0)
  10. platforms/software/dependency-management/src/test/groovy/org/gradle/internal/resource/transfer/ProgressLoggingExternalResourceAccessorTest.groovy

            and:
            0 * action._
        }
    
        def "reads empty content"() {
            setup:
            expectReadBuildOperation(0)
            expectResourceRead(new ByteArrayInputStream())
    
            when:
            def result = accessor.withContent(location, false, action)
    
            then:
            result == "result"
    
            and:
            1 * action.execute(_, _) >> "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)
Back to top