@@ -0,0 +1,1152 @@
+import com.qiniu.common.Zone;%0Aimport com.qiniu.storage.BucketManager;%0Aimport com.qiniu.storage.Configuration;%0Aimport com.qiniu.util.Auth;%0Aimport com.qiniu.storage.model.BucketInfo;%0A%0Apublic class GetBucketInfo %7B%0A    %0A    //%E8%AE%BE%E7%BD%AE%E9%9C%80%E8%A6%81%E6%93%8D%E4%BD%9C%E7%9A%84%E8%B4%A6%E5%8F%B7%E7%9A%84AK%E5%92%8CSK%0A    String ACCESS_KEY = %22Access_Key%22;%0A    String SECRET_KEY = %22Secret_Key%22;%0A    Auth auth = Auth.create(ACCESS_KEY, SECRET_KEY);%0A    %0A    //%E6%8C%87%E5%AE%9A%E5%8C%BA%E5%9F%9F%EF%BC%8C%E5%8F%AF%E4%BB%A5%E7%94%A8 Zone.autoZone() %E8%87%AA%E5%8A%A8%E8%8E%B7%E5%8F%96%0A    Zone z = Zone.zone0();%0A    Configuration c = new Configuration(z);%0A    %0A    //%E5%AE%9E%E4%BE%8B%E5%8C%96%E4%B8%80%E4%B8%AABucketManager%E5%AF%B9%E8%B1%A1%0A    BucketManager bucketManager = new BucketManager(auth, c);%0A    %0A    // %E7%A9%BA%E9%97%B4%E5%90%8D%0A    String bucket = %22BUCKET%22;%0A    %0A    public static void main(String%5B%5D args) %7B%0A        new GetBucketInfo().getBucketInfo();%0A    %7D%0A    %0A    public void getBucketInfo() %7B%0A        try %7B%0A            BucketInfo bucketInfo = bucketManager.getBucketInfo(bucket);%0A            // %E8%BE%93%E5%87%BA%E7%A9%BA%E9%97%B4%E7%A7%81%E6%9C%89%E6%80%A7%0A            System.out.println(bucketInfo.getPrivate());%0A            // %E8%BE%93%E5%87%BA%E7%A9%BA%E9%97%B4%E6%89%80%E8%BF%B0%E5%8C%BA%E5%9F%9F%0A            System.out.println(bucketInfo.getZone());%0A            %0A           // %E5%85%B6%E4%BB%96%E5%8F%82%E6%95%B0%E8%AF%A6%E8%A7%81 com.qiniu.storage.model.BucketInfo;%0A            %0A        %7D catch (Exception e) %7B%0A            //%0A        %7D%0A    %7D%0A%7D%0A

Create GetBucketInfo.java