GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Add restartableInputStream, first commit by yihanzhen · Pull Request #2682 · googleapis/google-cloud-java

Conversation

@yihanzhen

@yihanzhen yihanzhen commented Dec 5, 2017

Copy link
Copy Markdown
Contributor

PTAL -
@garrettjonesgoogle Not finished yet, just to make sure the idea aligns with #2620

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@yihanzhen
Add restartableInputStream, first commit
f1d2b00
@yihanzhen
yihanzhen requested a review from garrettjonesgoogle December 5, 2017 00:35
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Dec 5, 2017
@garrettjonesgoogle
garrettjonesgoogle requested a review from vam-google December 6, 2017 17:44
@garrettjonesgoogle

garrettjonesgoogle commented Dec 6, 2017

Copy link
Copy Markdown
Contributor

@vam-google , could you review this?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

vam-google
vam-google reviewed Dec 8, 2017
View reviewed changes

@vam-google vam-google left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please also address all the codacy-bot comments (unused imports & stuff).

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread google-cloud-storage/src/main/java/com/google/cloud/storage/RestartableInputStream.java
@@ -0,0 +1,48 @@
/*
* Copyright 2015 Google Inc. All Rights Reserved.

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

Comment thread google-cloud-storage/src/main/java/com/google/cloud/storage/RestartableInputStream.java
throw new IOExpection();
}
}
} No newline at end of file

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

Comment thread google-cloud-storage/src/main/java/com/google/cloud/storage/RestartableInputStream.java
import java.io.InputStream;

/**
*

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

Comment thread google-cloud-storage/src/main/java/com/google/cloud/storage/RestartableInputStream.java
*/
public class RestartableInputStream {

InputStream inputStream;

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

Comment thread google-cloud-storage/src/main/java/com/google/cloud/storage/RestartableInputStream.java
this.inputStream.mark(Integer.MAX_VALUE);
}
catch (IOException e) {
throw new IOExpection();

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

Comment thread google-cloud-storage/src/main/java/com/google/cloud/storage/RetryableInputStreamContent.java
package com.google.cloud.storage;

import com.google.api.client.http.AbstractInputStreamContent;
import sun.nio.ch.IOUtil;

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

Comment thread google-cloud-storage/src/main/java/com/google/cloud/storage/RestartableInputStream.java

public RestartableInputStream(InputStream inputStream) {
this.inputStream = inputStream;
this.inputStream.mark(Integer.MAX_VALUE);

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

Comment thread google-cloud-storage/src/main/java/com/google/cloud/storage/RestartableInputStream.java
public void restart() {
try {
this.inputStream.reset();
this.inputStream.mark(Integer.MAX_VALUE);

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

Comment thread google-cloud-storage/src/main/java/com/google/cloud/storage/spi/v1/HttpStorageRpc.java
}

@Override
public StorageObject create(StorageObject storageObject, final RestartableInputStream content,

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

Comment thread google-cloud-storage/src/main/java/com/google/cloud/storage/RetryableInputStreamContent.java
import java.io.InputStream;
import java.io.OutputStream;

public final class RetryableInputStreamContent extends AbstractInputStreamContent {

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@garrettjonesgoogle

garrettjonesgoogle commented Dec 21, 2017

Copy link
Copy Markdown
Contributor

@hzyi-google could you address @vam-google 's comments?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@garrettjonesgoogle
garrettjonesgoogle removed their request for review December 21, 2017 17:44
@yihanzhen

yihanzhen commented Dec 21, 2017

Copy link
Copy Markdown
Contributor Author

A lot of changes need to be made for this, so abandoning. With submit a different PR when finished.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@yihanzhen yihanzhen closed this Dec 21, 2017
@yihanzhen
yihanzhen deleted the storage_restartable_input_stream branch December 21, 2017 22:12
@dmitry-fa dmitry-fa mentioned this pull request May 6, 2020
Add Storage.create() method which takes a restartable input stream googleapis/java-storage#201
Closed
chingor13 pushed a commit that referenced this pull request Feb 20, 2026
@renovate-bot
deps: update dependency org.junit.vintage:junit-vintage-engine to v5.…
8cc01e1
…11.2 (#2682)
chingor13 pushed a commit that referenced this pull request Mar 24, 2026
@blakeli0
docs: Add contributing guidelines to PR and issue templates (#2682)
82f5ce8
chingor13 pushed a commit that referenced this pull request Mar 24, 2026
@release-please
chore(main): release 2.40.0 (#2679)
32ebbe1
🤖 I have created a release *beep* *boop*
---


<details><summary>2.40.0</summary>

##
[2.40.0](googleapis/sdk-platform-java@v2.39.0...v2.40.0)
(2024-05-02)


### Features

* [common-protos] add `Weight` to common types for Shopping APIs to be
used for accounts bundle
([#2699](googleapis/sdk-platform-java#2699))
([90a28ef](googleapis/sdk-platform-java@90a28ef))
* add a CLI tool to validate generation configuration
([#2691](googleapis/sdk-platform-java#2691))
([f52f8cc](googleapis/sdk-platform-java@f52f8cc))
* Parser to consume the api-versioning value from proto
([#2630](googleapis/sdk-platform-java#2630))
([c112b37](googleapis/sdk-platform-java@c112b37))
* Update Gapic generator and Gax to emit api-versioning via header
([#2671](googleapis/sdk-platform-java#2671))
([cb5ada0](googleapis/sdk-platform-java@cb5ada0))


### Bug Fixes

* change folder prefix for adding headers
([#2688](googleapis/sdk-platform-java#2688))
([ab5ba1d](googleapis/sdk-platform-java@ab5ba1d))
* Log HttpJson's async thread pool core size
([#2697](googleapis/sdk-platform-java#2697))
([31038d1](googleapis/sdk-platform-java@31038d1))
* replace `cfg = "host"` with `cfg = "exec"`
([#2637](googleapis/sdk-platform-java#2637))
([fd12e0f](googleapis/sdk-platform-java@fd12e0f))
* Return resolved endpoint from StubSettings' Builder
([#2715](googleapis/sdk-platform-java#2715))
([6139a73](googleapis/sdk-platform-java@6139a73))


### Dependencies

* Make opentelemetry-api an optional dependency.
([#2681](googleapis/sdk-platform-java#2681))
([2239c8c](googleapis/sdk-platform-java@2239c8c))
* update dependency absl-py to v2.1.0
([#2659](googleapis/sdk-platform-java#2659))
([b2b7738](googleapis/sdk-platform-java@b2b7738))
* update dependency gitpython to v3.1.43
([#2656](googleapis/sdk-platform-java#2656))
([6d273ad](googleapis/sdk-platform-java@6d273ad))
* update dependency lxml to v5.2.1
([#2661](googleapis/sdk-platform-java#2661))
([7a34168](googleapis/sdk-platform-java@7a34168))
* update dependency net.bytebuddy:byte-buddy to v1.14.14
([#2703](googleapis/sdk-platform-java#2703))
([72b0441](googleapis/sdk-platform-java@72b0441))
* update dependency typing to v3.10.0.0
([#2663](googleapis/sdk-platform-java#2663))
([4c64e98](googleapis/sdk-platform-java@4c64e98))
* update gapic-showcase to v0.33.0
([#2653](googleapis/sdk-platform-java#2653))
([5c12155](googleapis/sdk-platform-java@5c12155))


### Documentation

* Add contributing guidelines to PR and issue templates
([#2682](googleapis/sdk-platform-java#2682))
([82f5ce8](googleapis/sdk-platform-java@82f5ce8))
</details>

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
chingor13 pushed a commit that referenced this pull request Mar 30, 2026
@cloud-java-bot
chore: Update generation configuration at Wed Aug 21 02:15:24 UTC 2024 (
241c25c
#2682)
meltsufin pushed a commit that referenced this pull request Apr 29, 2026
@renovate-bot @jinseopkim0
deps: update dependency com.google.cloud:sdk-platform-java-config to …
1a94be9
…v3.56.1 (#2682)

Co-authored-by: Jin Seop Kim <[email protected]>
meltsufin pushed a commit that referenced this pull request May 1, 2026
@renovate-bot @jinseopkim0
deps: update dependency com.google.cloud:sdk-platform-java-config to …
e3442ec
…v3.56.1 (#2682)

Co-authored-by: Jin Seop Kim <[email protected]>
rahul2393 pushed a commit to akash329d/google-cloud-java that referenced this pull request May 21, 2026
@trollyxia @mutianf
textproxy: Allow testproxy to build its own proto registry (googleapi…
1b13749
…s#2682)

* textproxy: Allow testproxy to build its own proto registry

Change-Id: Ie930064363d92d61daad498e8380dd87ab6722dd

* testproxy: Remove manual dependency resolution from ResultSetSerializer

We now require the clients to provide FileDescriptorSet with files in dependency order

Change-Id: I240cfe8f4d499ba7053dfab1f119972de1810fce

---------

Co-authored-by: Mattie Fu <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

1 more reviewer
@vam-google vam-google vam-google left review comments
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

4 participants

@yihanzhen @garrettjonesgoogle @vam-google @googlebot
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.