You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: branches/update-datastore/gcloud-java-storage/src/main/java/com/google/gcloud/storage/BlobReadChannel.java
+2-3Lines changed: 2 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -26,9 +26,8 @@
26
26
/**
27
27
* A channel for reading data from a Google Cloud Storage object.
28
28
*
29
-
* Implementations of this class may buffer data internally to reduce remote calls.
30
-
*
31
-
* This class is @{link Serializable}, which allows incremental reads.
29
+
* Implementations of this class may buffer data internally to reduce remote calls. This interface
30
+
* implements {@link Restorable} to allow saving the reader's state to continue reading afterwards.
Copy file name to clipboardExpand all lines: branches/update-datastore/gcloud-java-storage/src/main/java/com/google/gcloud/storage/BlobReadChannelImpl.java
+23-4Lines changed: 23 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -23,6 +23,7 @@
23
23
importcom.google.gcloud.RestorableState;
24
24
importcom.google.gcloud.RetryHelper;
25
25
importcom.google.gcloud.spi.StorageRpc;
26
+
importcom.google.gcloud.spi.StorageRpc.Tuple;
26
27
27
28
importjava.io.IOException;
28
29
importjava.io.Serializable;
@@ -41,6 +42,7 @@ class BlobReadChannelImpl implements BlobReadChannel {
Copy file name to clipboardExpand all lines: branches/update-datastore/gcloud-java-storage/src/main/java/com/google/gcloud/storage/BlobWriteChannel.java
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -26,8 +26,8 @@
26
26
* A channel for writing data to a Google Cloud Storage object.
27
27
*
28
28
* Implementations of this class may further buffer data internally to reduce remote calls. Written
29
-
* data will only be visible after calling {@link #close()}. This class is serializable, to allow
30
-
* incremental writes.
29
+
* data will only be visible after calling {@link #close()}. This interface implements
30
+
* {@link Restorable} to allow saving the writer's state to continue writing afterwards.
Copy file name to clipboardExpand all lines: branches/update-datastore/gcloud-java-storage/src/test/java/com/google/gcloud/storage/BlobReadChannelImplTest.java
+36-11Lines changed: 36 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -19,7 +19,6 @@
19
19
importstaticorg.easymock.EasyMock.anyObject;
20
20
importstaticorg.easymock.EasyMock.createMock;
21
21
importstaticorg.easymock.EasyMock.expect;
22
-
importstaticorg.easymock.EasyMock.expectLastCall;
23
22
importstaticorg.easymock.EasyMock.replay;
24
23
importstaticorg.easymock.EasyMock.verify;
25
24
importstaticorg.junit.Assert.assertArrayEquals;
@@ -46,7 +45,7 @@ public class BlobReadChannelImplTest {
Copy file name to clipboardExpand all lines: branches/update-datastore/gcloud-java-storage/src/test/java/com/google/gcloud/storage/StorageImplTest.java
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -1030,7 +1030,7 @@ public void testReaderWithOptions() throws IOException {
0 commit comments