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

Commit 4355a3c

Browse files
author
synapticloop
committed
updated documentation
1 parent 09f20eb commit 4355a3c

File tree

4 files changed

+11
-6
lines changed

4 files changed

+11
-6
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,9 @@ public class QuickExampleMain {
8181
// or a public one
8282
B2BucketResponse createPublicBucket = b2ApiClient.createBucket("everyone-has-access" , BucketType.allPublic);
8383
84-
// upload a file
84+
// upload a file to the private bucket
8585
b2ApiClient.uploadFile(createPrivateBucket.getBucketId(), "myfile.txt", new File("/tmp/temporary-file.txt"));
86+
8687
} catch(B2ApiException | IOException ex) {
8788
ex.printStackTrace();
8889
}
@@ -581,7 +582,7 @@ You will also need to download the following dependencies:
581582
```
582583
The MIT License (MIT)
583584
584-
Copyright (c) 2016 synapticloop
585+
Copyright (c) 2017 synapticloop
585586
586587
Permission is hereby granted, free of charge, to any person obtaining a copy
587588
of this software and associated documentation files (the "Software"), to deal

build.gradle

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,11 @@ plugins {
66
id 'net.saliman.cobertura' version '2.3.2'
77
id "com.jfrog.bintray" version "1.7"
88
id 'co.riiid.gradle' version '0.4.2'
9-
id 'synapticloop.documentr' version '2.6.1'
9+
1010
id 'com.github.ben-manes.versions' version '0.13.0'
11+
12+
id 'synapticloop.documentr' version '2.6.1'
13+
id "synapticloop.copyrightr" version "1.1.1"
1114
}
1215

1316
group = 'synapticloop'

src/main/java/synapticloop/b2/LifecycleRule.java

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

3-
import org.json.JSONObject;
4-
53
/*
64
* Copyright (c) 2016 Synapticloop.
75
*
@@ -18,6 +16,8 @@
1816
* this source code or binaries.
1917
*/
2018

19+
import org.json.JSONObject;
20+
2121
/**
2222
* <p>Lifecycle rules instruct the B2 service to automatically hide and/or delete
2323
* old files. You can set up rules to do things like delete old versions of

src/test/java/synapticloop/b2/QuickExampleMain.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,9 @@ public static void main(String[] args) throws B2ApiException, IOException {
2222
// or a public one
2323
B2BucketResponse createPublicBucket = b2ApiClient.createBucket("everyone-has-access" , BucketType.allPublic);
2424

25-
// upload a file
25+
// upload a file to the private bucket
2626
b2ApiClient.uploadFile(createPrivateBucket.getBucketId(), "myfile.txt", new File("/tmp/temporary-file.txt"));
27+
2728
} catch(B2ApiException | IOException ex) {
2829
ex.printStackTrace();
2930
}

0 commit comments

Comments
 (0)