Skip to content
This repository was archived by the owner on Dec 6, 2024. It is now read-only.

Commit a6b4e57

Browse files
SynapticloopSynapticloop
authored andcommitted
javadoc fix
1 parent 26d4794 commit a6b4e57

19 files changed

Lines changed: 101 additions & 30 deletions

src/main/java/synapticloop/b2/B2ApiClient.java

Lines changed: 40 additions & 0 deletions
Large diffs are not rendered by default.

src/main/java/synapticloop/b2/request/B2AuthorizeAccountRequest.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ public B2AuthorizeAccountRequest(CloseableHttpClient client, String accountId,
7171
* @return the authorize response
7272
*
7373
* @throws B2ApiException if there was an error with the call
74+
* @throws IOException if there was an error communicating with the API service
7475
*/
7576
public B2AuthorizeAccountResponse getResponse() throws B2ApiException, IOException {
7677
final CloseableHttpResponse httpResponse = executeGet();

src/main/java/synapticloop/b2/request/B2CreateBucketRequest.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ public B2CreateBucketRequest(CloseableHttpClient client, B2AuthorizeAccountRespo
7171
* @return the created bucket response
7272
*
7373
* @throws B2ApiException if there was an error with the call
74+
* @throws IOException if there was an error communicating with the API service
7475
*/
7576
public B2BucketResponse getResponse() throws B2ApiException, IOException {
7677
return new B2BucketResponse(EntityUtils.toString(executePost().getEntity()));

src/main/java/synapticloop/b2/request/B2DeleteBucketRequest.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ public B2DeleteBucketRequest(CloseableHttpClient client, B2AuthorizeAccountRespo
6060
*
6161
* @throws B2ApiException if there was an error with the call, or if you are
6262
* trying to delete a bucket which is not empty
63+
* @throws IOException if there was an error communicating with the API service
6364
*/
6465
public B2BucketResponse getResponse() throws B2ApiException, IOException {
6566
return new B2BucketResponse(EntityUtils.toString(executePost().getEntity()));

src/main/java/synapticloop/b2/request/B2DeleteFileVersionRequest.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
package synapticloop.b2.request;
22

3+
import java.io.IOException;
4+
35
/*
46
* Copyright (c) 2016 synapticloop.
57
*
@@ -18,12 +20,11 @@
1820

1921
import org.apache.http.impl.client.CloseableHttpClient;
2022
import org.apache.http.util.EntityUtils;
23+
2124
import synapticloop.b2.exception.B2ApiException;
2225
import synapticloop.b2.response.B2AuthorizeAccountResponse;
2326
import synapticloop.b2.response.B2DeleteFileVersionResponse;
2427

25-
import java.io.IOException;
26-
2728
/**
2829
* <p>Deletes one version of a file from B2.</p>
2930
*
@@ -65,6 +66,7 @@ public B2DeleteFileVersionRequest(CloseableHttpClient client, B2AuthorizeAccount
6566
* @return the delete file version response
6667
*
6768
* @throws B2ApiException if there was an error with the call
69+
* @throws IOException if there was an error communicating with the API service
6870
*/
6971
public B2DeleteFileVersionResponse getResponse() throws B2ApiException, IOException {
7072
return new B2DeleteFileVersionResponse(EntityUtils.toString(executePost().getEntity()));

src/main/java/synapticloop/b2/request/B2DownloadFileByIdRequest.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
package synapticloop.b2.request;
22

3+
import java.io.IOException;
4+
35
/*
46
* Copyright (c) 2016 synapticloop.
57
*
@@ -23,8 +25,6 @@
2325
import synapticloop.b2.response.B2AuthorizeAccountResponse;
2426
import synapticloop.b2.response.B2DownloadFileResponse;
2527

26-
import java.io.IOException;
27-
2828
/**
2929
* <p>Downloads one file from B2.</p>
3030
*
@@ -112,7 +112,9 @@ public B2DownloadFileByIdRequest(CloseableHttpClient client, B2AuthorizeAccountR
112112
* Execute the request and return the response
113113
*
114114
* @return The download file response
115+
*
115116
* @throws B2ApiException If there was an error with the call
117+
* @throws IOException if there was an error communicating with the API service
116118
*/
117119
public B2DownloadFileResponse getResponse() throws B2ApiException, IOException {
118120
return new B2DownloadFileResponse(executeGet());

src/main/java/synapticloop/b2/request/B2DownloadFileByNameRequest.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
package synapticloop.b2.request;
22

3+
import java.io.IOException;
4+
35
/*
46
* Copyright (c) 2016 synapticloop.
57
*
@@ -24,8 +26,6 @@
2426
import synapticloop.b2.response.B2DownloadFileResponse;
2527
import synapticloop.b2.util.URLEncoder;
2628

27-
import java.io.IOException;
28-
2929
/**
3030
* <p>Downloads one file by providing the name of the bucket and the name of the file.</p>
3131
*
@@ -92,6 +92,7 @@ public B2DownloadFileByNameRequest(CloseableHttpClient client, B2AuthorizeAccoun
9292
* @return The download file response
9393
*
9494
* @throws B2ApiException If there was an error with the call
95+
* @throws IOException if there was an error communicating with the API service
9596
*/
9697
public B2DownloadFileResponse getResponse() throws B2ApiException, IOException {
9798
return new B2DownloadFileResponse(executeGet());

src/main/java/synapticloop/b2/request/B2GetFileInfoRequest.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ public B2GetFileInfoRequest(CloseableHttpClient client, B2AuthorizeAccountRespon
6161
* @return The details for the file information
6262
*
6363
* @throws B2ApiException if there was an error with the call
64+
* @throws IOException if there was an error communicating with the API service
6465
*/
6566
public B2FileResponse getResponse() throws B2ApiException, IOException {
6667
return new B2FileResponse(EntityUtils.toString(executePost().getEntity()));

src/main/java/synapticloop/b2/request/B2GetUploadUrlRequest.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ public B2GetUploadUrlRequest(CloseableHttpClient client, B2AuthorizeAccountRespo
6060
* @return the upload url response
6161
*
6262
* @throws B2ApiException if something went wrong
63+
* @throws IOException if there was an error communicating with the API service
6364
*/
6465
public B2GetUploadUrlResponse getResponse() throws B2ApiException, IOException {
6566
return new B2GetUploadUrlResponse(EntityUtils.toString(executePost().getEntity()));

src/main/java/synapticloop/b2/request/B2HeadFileByIdRequest.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
package synapticloop.b2.request;
22

3+
import java.io.IOException;
4+
35
/*
46
* Copyright (c) 2016 synapticloop.
57
*
@@ -22,8 +24,6 @@
2224
import synapticloop.b2.response.B2AuthorizeAccountResponse;
2325
import synapticloop.b2.response.B2DownloadFileResponse;
2426

25-
import java.io.IOException;
26-
2727
/**
2828
* <p>Gets information on one file from B2.</p>
2929
*
@@ -77,6 +77,7 @@ public B2HeadFileByIdRequest(CloseableHttpClient client, B2AuthorizeAccountRespo
7777
* @return the download file response - note that this does not contain any body content
7878
*
7979
* @throws B2ApiException if something went wrong
80+
* @throws IOException if there was an error communicating with the API service
8081
*/
8182
public B2DownloadFileResponse getResponse() throws B2ApiException, IOException {
8283
return new B2DownloadFileResponse(this.executeHead());

0 commit comments

Comments
 (0)