- Sort Score
- Result 10 results
- Languages All
Results 81 - 90 of 177 for ByteArrayInputStream (0.76 sec)
-
platforms/core-execution/workers/src/test/groovy/org/gradle/workers/internal/VisitableURLClassLoaderSpecSerializerTest.groovy
def spec = new VisitableURLClassLoader.Spec("test", urls) when: serializer.write(encoder, spec) encoder.flush() and: def decoder = new KryoBackedDecoder(new ByteArrayInputStream(outputStream.toByteArray())) def decodedSpec = serializer.read(decoder) then: decodedSpec == spec }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 22 09:36:27 UTC 2023 - 1.6K bytes - Viewed (0) -
platforms/core-runtime/launcher/src/test/groovy/org/gradle/launcher/daemon/bootstrap/DaemonOutputConsumerTest.groovy
} } def process(String input = "", OutputStream processInput = new ByteArrayOutputStream()) { return Stub(Process) { getInputStream() >> new ByteArrayInputStream(input.bytes) getOutputStream() >> processInput } }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 22 09:29:13 UTC 2023 - 2.5K bytes - Viewed (0) -
platforms/core-runtime/serialization/src/test/groovy/org/gradle/internal/serialize/ClassLoaderObjectInputStreamTest.groovy
def output = new ByteArrayOutputStream() def oos = new ObjectOutputStream(output) oos.writeObject(arrayObject) oos.close() when: def input = new ByteArrayInputStream(output.toByteArray()) def ois = new ClassLoaderObjectInputStream(input, gcl) def readArrayObject = ois.readObject() then: readArrayObject.class.isArray()
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Apr 15 16:06:56 UTC 2024 - 1.4K bytes - Viewed (0) -
maven-api-impl/src/main/java/org/apache/maven/internal/impl/DefaultChecksumAlgorithmService.java
* specific language governing permissions and limitations * under the License. */ package org.apache.maven.internal.impl; import java.io.BufferedInputStream; import java.io.ByteArrayInputStream; import java.io.IOException; import java.io.InputStream; import java.io.UncheckedIOException; import java.nio.ByteBuffer; import java.nio.file.Files; import java.nio.file.Path; import java.util.ArrayList;
Registered: Wed Jun 12 09:55:16 UTC 2024 - Last Modified: Mon Mar 25 10:50:01 UTC 2024 - 7.4K bytes - Viewed (0) -
platforms/core-runtime/launcher/src/test/groovy/org/gradle/launcher/cli/WelcomeMessageActionTest.groovy
return new WelcomeMessageAction(log, buildLayout, welcomeMessageConfiguration, gradleVersion, { welcomeMessage == null ? null : new ByteArrayInputStream(welcomeMessage.bytes) } as Function, delegateAction) } def "prints highlights when file exists and contains visible content"() { given:
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 22 09:29:13 UTC 2023 - 6.6K bytes - Viewed (0) -
platforms/jvm/normalization-java/src/main/java/org/gradle/api/internal/changedetection/state/FallbackHandlingResourceHasher.java
import org.gradle.internal.io.IoFunction; import org.gradle.internal.io.IoSupplier; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import javax.annotation.Nullable; import java.io.ByteArrayInputStream; import java.io.IOException; import java.io.InputStream; import java.util.Optional; import java.util.function.Supplier; abstract class FallbackHandlingResourceHasher implements ResourceHasher {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Sep 28 15:09:49 UTC 2023 - 6K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/mylasta/direction/FessPropTest.java
final DOMParser parser = new DOMParser(); final String html = "<html><body>" + text + "</body></html>"; final ByteArrayInputStream is = new ByteArrayInputStream(html.getBytes("UTF-8")); parser.parse(new InputSource(is)); Node node = parser.getDocument().getFirstChild().getLastChild().getFirstChild(); return tag.matches(node); }
Registered: Wed Jun 12 13:08:18 UTC 2024 - Last Modified: Thu Feb 22 01:37:57 UTC 2024 - 12.7K bytes - Viewed (0) -
platforms/software/resources-http/src/test/groovy/org/gradle/internal/resource/transport/http/HttpResourceListerTest.groovy
ExternalResourceMetaData metaData = Mock() HttpResourceLister lister = new HttpResourceLister(accessorMock) def "parses resource content"() { setup: def inputStream = new ByteArrayInputStream("<a href='child'/>".bytes) def name = new ExternalResourceName("http://testrepo/") when: lister.list(name) then:
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Oct 12 19:38:08 UTC 2023 - 1.7K bytes - Viewed (0) -
platforms/ide/tooling-api/src/testFixtures/groovy/org/gradle/integtests/tooling/fixture/ConfigurableOperation.groovy
return OutputScrapingExecutionResult.from(standardOutput, standardError) } ConfigurableOperation setStandardInput(String input) { this.operation.standardInput = new ByteArrayInputStream(input.toString().bytes) return this } List getProgressMessages() { return progressMessages } ConfigurableOperation buildModel() {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Sep 26 14:49:20 UTC 2023 - 2.3K bytes - Viewed (0) -
platforms/core-runtime/logging/src/test/groovy/org/gradle/internal/logging/serializer/LogSerializerSpec.groovy
return fromBytes(bytes, serializer) } public <T> T fromBytes(byte[] bytes, Serializer<T> serializer) { return serializer.read(new KryoBackedDecoder(new ByteArrayInputStream(bytes))) } public <T> byte[] toBytes(T value, Serializer<T> serializer) { def bytes = new ByteArrayOutputStream() def encoder = new KryoBackedEncoder(bytes)
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 22 09:05:18 UTC 2023 - 1.6K bytes - Viewed (0)