Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 102 for readAsString (0.19 sec)

  1. platforms/core-runtime/io/src/test/groovy/org/gradle/internal/io/StreamByteBufferTest.groovy

                out.write('HELLO'.getBytes("UTF-8"))
                byteBuffer.readAsString("UTF-8") == 'HELLO'
                byteBuffer.readAsString() == ''
                byteBuffer.readAsString() == ''
            }
            out.write(TEST_STRING_BYTES)
    
            then:
            byteBuffer.readAsString("UTF-8") == TEST_STRING
    
            where:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 12 13:06:08 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  2. platforms/core-runtime/io/src/main/java/org/gradle/internal/io/StreamByteBuffer.java

            }
            return listOfByteArrays;
        }
    
        public String readAsString(String encoding) {
            Charset charset = Charset.forName(encoding);
            return readAsString(charset);
        }
    
        public String readAsString() {
            return readAsString(Charset.defaultCharset());
        }
    
        public String readAsString(Charset charset) {
            try {
                return doReadAsString(charset);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 12 08:51:14 UTC 2024
    - 16.6K bytes
    - Viewed (0)
  3. platforms/core-runtime/io/src/main/java/org/gradle/internal/io/LineBufferingOutputStream.java

            byte currentByte = (byte) (b & 0xff);
            return currentByte == lastLineSeparatorByte || currentByte == '\n';
        }
    
        @Override
        public void flush() {
            String text = buffer.readAsString();
            if (text.length() > 0) {
                handler.text(text);
            }
            counter = 0;
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 12 08:51:14 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  4. platforms/software/testing-base-infrastructure/src/main/java/org/gradle/api/internal/tasks/testing/worker/TestEventSerializer.java

                Object id = idSerializer.read(decoder);
                String className = decoder.readString();
                String classDisplayName = decoder.readString();
                String name = decoder.readString();
                String displayName = decoder.readString();
                return new DefaultTestDescriptor(id, className, name, classDisplayName, displayName);
            }
    
            @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 13 20:33:30 UTC 2024
    - 19.4K bytes
    - Viewed (0)
  5. platforms/core-configuration/model-core/src/main/java/org/gradle/internal/snapshot/impl/ImplementationSnapshotSerializer.java

                    HashCode classLoaderHash = hashCodeSerializer.read(decoder);
                    String functionalInterfaceClass = decoder.readString();
                    String implClass = decoder.readString();
                    String implMethodName = decoder.readString();
                    String implMethodSignature = decoder.readString();
                    int implMethodKind = decoder.readSmallInt();
                    return new LambdaImplementationSnapshot(
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 24 12:33:49 UTC 2024
    - 6K bytes
    - Viewed (0)
  6. platforms/core-runtime/serialization/src/test/groovy/org/gradle/internal/serialize/kryo/KryoBackedCodecTest.groovy

            decode(bytes) { Decoder decoder ->
                decoder.decodeChunked { Decoder nested ->
                    assert nested.readSmallInt() == 12
                    assert nested.readString() == "chunked"
                }
                assert decoder.readString() == "done"
            }
        }
    
        def "can encode and decode multiple byte streams"() {
            when:
            def bytes = encode { Encoder encoder ->
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Apr 15 16:06:56 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  7. platforms/core-configuration/configuration-cache/src/main/kotlin/org/gradle/internal/cc/impl/serialize/DefaultClassDecoder.kt

            } else {
                ownerService<ClassLoaderScopeRegistry>().coreAndPluginsScope
            }
    
            val name = readString()
            val origin = if (readBoolean()) {
                ClassLoaderScopeOrigin.Script(readString(), Describables.of(readString()), Describables.of(readString()))
            } else {
                null
            }
            val localClassPath = readClassPath()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:30 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  8. platforms/core-runtime/daemon-server/src/main/java/org/gradle/launcher/daemon/bootstrap/DaemonMain.java

                gradleHomeDir = new File(decoder.readString());
                daemonBaseDir = new File(decoder.readString());
                idleTimeoutMs = decoder.readSmallInt();
                periodicCheckIntervalMs = decoder.readSmallInt();
                singleUse = decoder.readBoolean();
                nativeServicesMode = NativeServicesMode.values()[decoder.readSmallInt()];
                daemonUid = decoder.readString();
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jun 11 09:51:15 UTC 2024
    - 9.8K bytes
    - Viewed (0)
  9. platforms/core-runtime/serialization/src/test/groovy/org/gradle/internal/serialize/kryo/KryoBackedDecoderTest.groovy

            def input2 = encoded("string 2")
    
            given:
            def decoder = new KryoBackedDecoder(input1)
            decoder.readString()
            decoder.restart(input2)
    
            expect:
            decoder.readPosition == 0
            decoder.readString() == "string 2"
            decoder.readInt() == 12
        }
    
        InputStream encoded(String text) {
            def stream = new ByteArrayOutputStream()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Apr 15 16:06:56 UTC 2024
    - 1.4K bytes
    - Viewed (0)
  10. platforms/core-runtime/logging/src/main/java/org/gradle/internal/logging/serializer/TextQuestionPromptEventSerializer.java

        }
    
        @Override
        public TextQuestionPromptEvent read(Decoder decoder) throws Exception {
            return new TextQuestionPromptEvent(decoder.readLong(), decoder.readString(), decoder.readString());
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 30 05:02:18 UTC 2024
    - 1.4K bytes
    - Viewed (0)
Back to top