file

This document is based on the OSS Java SDK version 3.17.2.

Version Description

Before downloading the OSS Java SDK, please select the appropriate version. OSS manages the open download source path through MVNRepository and provides the source code reference of GitHub.

source

describe

MVNRepository

The path to download OSS source code packages. You can obtain the exact version of the Maven project injected OSS Java SDK dependency in the MVNRepository.

explain

It is recommended that you obtain the latest version of the OSS Java SDK for debugging to avoid error reporting.

For more information, see Aliyun OSS Java SDK

GitHub

It is used to record the label information of the released version of GitHub source code. You can browse the source code and view the rich code samples on GitHub. For more information, see Aliyun OSS Java SDK Release

compatibility

The compatibility of the Java SDK version is described as follows:

  • For 3. ×. × series SDKs:

    • Interface: compatible.

    • Namespace: Compatible.

  • For 2. ×. × series SDKs:

    • Interface: compatible.

    • Namespace: Compatible.

  • For 1.0. × series SDKs:

    • Interface: compatible.

    • Namespace: Incompatible. Version 2.0.0 removed the code related to TableStore in version 1.0. x, and changed the package name com.aliyun.openservices.* and com.aliyun.openservices.oss.* Replace with com.aliyun.oss.*

SDK source code and API documentation

For SDK source code, see GitHub For more information, see OSS Java SDK API documentation

Sample code

The OSS Java SDK provides a wealth of sample codes for your reference or direct use. The sample code includes the following:

Sample file

Sample content

GetStartedSample.java

quick get start

BucketOperationsSample.java

BucketTaggingSample.java

Storage space label

BucketInventorySample.java

Storage space list

BucketPolicySample.java

Authorization Policy

BucketWormSample.java

Compliance retention policy

SetRequestPaymentSample.java

Requester payment mode

BucketReplicationSample.java

Data replication

BucketTransferAccelerationSample.java

Transmission acceleration

CreateFolderSample.java

Simple upload

PostObjectSample.java

Form upload

explain

PostObject The implementation of does not depend on the Java SDK.

AppendObjectSample.java

Append Upload

UploadSample.java

Breakpoint resume upload

MultipartUploadSample.java

Fragment upload

CallbackSample.java

Upload callback

SimpleGetObjectSample.java

Download files

DownloadSample.java

Download of breakpoint resume

ConcurrentGetObjectSample.java

Download of breakpoint resume

GetProgressSample.java

GetStartedSample.java

ObjectMetaSample.java

File metadata

StorageTypeSample.java

Convert File Storage Type

ListObjectsSample.java

List files

BucketMetaQuerySample.java

Data index

SelectObjectSample.java

Query file

DeleteObjectsSample.java

Delete File

UploadPartCopySample.java

Copy files

ObjectOperationSample.java

Do not overwrite files with the same name

RestoreObjectSample.java

Unfreeze files

SymLinkSample.java

Manage Soft Links

BucketVersioningSample.java

Manage Versioning

ObjectTaggingSample.java

TrafficLimitSample.java

Single link speed limit

Client encryption

EncryptionServiceSample.java

Server side encryption

AuthorizedAccessSample.java

Authorized access

CRCSample.java

CRC64 verification

ImageSample.java

Picture processing

  • Introduction to this page (1)