Skip to content

Commit

Permalink
Fixing merge conflict in README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Ajay Kannan committed Oct 8, 2015
2 parents 59722fa + c6b7f27 commit 26fb875
Show file tree
Hide file tree
Showing 8 changed files with 818 additions and 89 deletions.
3 changes: 2 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ before_install:
- git clone -b travis `git config --get remote.origin.url` target/travis
- cp target/travis/settings.xml ~/.m2/settings.xml
install: mvn install -DskipTests=true -Dgpg.skip=true
script: mvn verify
script:
- utilities/verify.sh
branches:
only:
- master
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,15 @@
* <pre>{@code
* StorageOptions options = StorageOptions.builder().projectId("project").build();
* Storage storage = StorageFactory.instance().get(options);
* byte[] content = readContent();
* BlobInfo blobInfo = storage.get("bucket", "blob_name");
* if (blobInfo == null) {
* storage.create(BlobInfo.of("bucket", "blob_name"), content);
* Blob blob = new Blob(storage, "bucket", "blob_name");
* if (!blob.exists()) {
* storage.create(blob.info(), "Hello, Cloud Storage!".getBytes(UTF_8));
* } else {
* byte[] prevContent = storage.readAllBytes("bucket", "blob_name");
* content = mergeContent(prevContent, content);
* WritableByteChannel channel = storage.writer(blob);
* channel.write(ByteBuffer.wrap(content));
* System.out.println("Updating content for " + blob.info().name());
* byte[] prevContent = blob.content();
* System.out.println(new String(prevContent, UTF_8));
* WritableByteChannel channel = blob.writer();
* channel.write(ByteBuffer.wrap("Updated content".getBytes(UTF_8)));
* channel.close();
* }}</pre>
*
Expand Down
Loading

0 comments on commit 26fb875

Please sign in to comment.