The TOS Java SDK enables Java developers to easily work with TOS(Tinder Object Storage) service in the volcengine.
You can get started in minutes using Maven or by downloading a single zip file.
This document will show developers some basic examples about TOS bucket and object operation.
More details can be found in https://www.volcengine.com/docs/6349/79895
This section introduces how to create a bucket, upload/download/delete an object in TOS service through our SDK.
Init a TOSV2Client
You can interact with TOS service after initiating a TOSV2Client instance.
The accesskey and secretkey of your account, endpoint and region are required as params.
String region = "region to access";
String endpoint = "endpoint to access";
String accessKey = "your access key";
String secretKey = "your secret key";
TOSV2 client = new TOSV2ClientBuilder().build(region, endpoint, accessKey, secretKey);
Creat a bucket
The bucket is a kind of unique namespace in TOS, which is a container to store data.
This example shows you how to create a bucket.
Volcengine TOS SDK for Java
The TOS Java SDK enables Java developers to easily work with TOS(Tinder Object Storage) service in the volcengine. You can get started in minutes using Maven or by downloading a single zip file. This document will show developers some basic examples about TOS bucket and object operation. More details can be found in https://www.volcengine.com/docs/6349/79895
Install
Requirements
Use Maven
Get Started
This section introduces how to create a bucket, upload/download/delete an object in TOS service through our SDK.
Init a TOSV2Client
You can interact with TOS service after initiating a TOSV2Client instance. The accesskey and secretkey of your account, endpoint and region are required as params.
Creat a bucket
The bucket is a kind of unique namespace in TOS, which is a container to store data. This example shows you how to create a bucket.
PutObject
You can put your file as an object into your own bucket.
GetObject
You can download objects in the TOS bucket through our SDK.
DeleteObject
Your can delete your objects in the bucket.
License
Apache License 2.0