- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for getObjectContent (0.62 sec)
-
platforms/software/resources-s3/src/main/java/org/gradle/internal/resource/transport/aws/s3/S3Resource.java
public S3Resource(S3Object s3Object, URI uri) { this.s3Object = s3Object; this.uri = uri; } @Override public InputStream openStream() throws IOException { return s3Object.getObjectContent(); } public URI getURI() { return uri; } public long getContentLength() { return s3Object.getObjectMetadata().getContentLength(); }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Oct 12 19:38:08 UTC 2023 - 2.3K bytes - Viewed (0) -
platforms/software/resources-s3/src/main/java/org/gradle/internal/resource/transport/aws/s3/S3ResourceConnector.java
// Consume the content stream to avoid warning from S3 SDK. The response should have only 1 byte there because Range header was specified. try { S3ObjectInputStream objectContent = s3Object.getObjectContent(); if (objectContent == null) { return; } long downloadedContentLength = ByteStreams.exhaust(objectContent); if (downloadedContentLength > 1L) {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Oct 12 19:38:08 UTC 2023 - 4.9K bytes - Viewed (0) -
platforms/software/resources-s3/src/integTest/groovy/org/gradle/integtests/resource/s3/S3ClientIntegrationTest.groovy
object.metadata.getETag() ==~ /\w{32}/ ByteArrayOutputStream outStream = new ByteArrayOutputStream() IOUtils.copyLarge(object.getObjectContent(), outStream); outStream.toString() == fileContents } as Action) when: server.stubListFile(temporaryFolder.testDirectory, bucketName) then:
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Oct 12 19:38:08 UTC 2023 - 9.8K bytes - Viewed (0)