Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 114 for readAsString (0.16 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/native/platform-native/src/main/java/org/gradle/nativeplatform/toolchain/internal/metadata/AbstractMetadataProvider.java

            if (exitValue == 0) {
                return Pair.of(buffer.readAsString(), errorBuffer.readAsString());
            } else if (exitValue == 69) {
                // After an Xcode upgrade, running clang will frequently fail in a mysterious way.
                // Make the failure very obvious by throwing this back up to the user.
                String errorBufferAsString = errorBuffer.readAsString();
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Feb 08 13:16:50 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  4. platforms/extensibility/test-kit/src/main/java/org/gradle/testkit/runner/internal/ToolingApiGradleExecutor.java

            } catch (BuildException t) {
                return new GradleExecutionResult(new BuildOperationParameters(targetGradleVersion, parameters.isEmbedded()), outputBuffer.readAsString(), tasks, t);
            } catch (GradleConnectionException t) {
                StringBuilder message = new StringBuilder("An error occurred executing build with ");
                if (parameters.getBuildArgs().isEmpty()) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Feb 05 14:27:21 UTC 2024
    - 13.1K bytes
    - Viewed (0)
  5. 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)
  6. platforms/native/platform-native/src/main/java/org/gradle/nativeplatform/toolchain/internal/gcc/metadata/GccMetadataProvider.java

            execAction.setStandardOutput(buffer.getOutputStream());
            execAction.setErrorOutput(errorBuffer.getOutputStream());
            execAction.execute().assertNormalExitValue();
            return buffer.readAsString().trim();
        }
    
        private Map<String, String> parseDefines(String output, File gccBinary) {
            BufferedReader reader = new BufferedReader(new StringReader(output));
            String line;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Jan 15 06:39:06 UTC 2024
    - 13K bytes
    - Viewed (0)
  7. 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)
  8. 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)
  9. 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)
  10. 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)
Back to top