com.obs.services.model.fs

## 类 ObsFSBucket

- java.lang.Object
- - com.obs.services.model.fs.ObsFSBucket

-     public class ObsFSBucket
      extends Object

  Buckets that support the file interface

- - ### 字段概要

    字段
    限定符和类型 | 字段和说明
    --- | ---
    `protected ObsClient` | `innerClient`

  - ### 构造器概要

    构造器
    构造器和说明
    `ObsFSBucket(String bucketName, String location)`

  - ### 方法概要

    所有方法 实例方法 具体方法
    限定符和类型 | 方法和说明
    --- | ---
    `protected void` | `checkInternalClient()`
    `String` | `getBucketName()` Obtain the bucket name.
    `String` | `getLocation()` Obtain the bucket location.
    `ObsFSFile` | `newFile(String fileName, File file)` Create a file.
    `ObsFSFile` | `newFile(String fileName, File file, ObjectMetadata metadata)` Create a file.
    `ObsFSFile` | `newFile(String fileName, InputStream input)` Create a file.
    `ObsFSFile` | `newFile(String fileName, InputStream input, ObjectMetadata metadata)` Create a file.
    `ObsFSFolder` | `newFolder(String folderName)` Create a folder.
    `HeaderResponse` | `setFSStatus(FSStatusEnum status)` Set status of the file gateway feature for a bucket.
    `protected void` | `setInnerClient(ObsClient innerClient)`

    - ### 从类继承的方法 java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### 字段详细资料

    - #### innerClient

          protected ObsClient innerClient

  - ### 构造器详细资料

    - #### ObsFSBucket

          public ObsFSBucket(String bucketName,
                             String location)

  - ### 方法详细资料

    - #### setInnerClient

          protected void setInnerClient(ObsClient innerClient)

    - #### setFSStatus

          public HeaderResponse setFSStatus(FSStatusEnum status)
                                     throws ObsException

      Set status of the file gateway feature for a bucket.
      参数:
        `status` - Status of the file gateway feature
      返回:
        Response to the request for setting status of the file gateway feature for the bucket
      抛出:
        `ObsException` - OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails

    - #### newFolder

          public ObsFSFolder newFolder(String folderName)
                                throws ObsException

      Create a folder.
      参数:
        `folderName` - Folder name
      返回:
        Folders in the bucket that supports the file interface
      抛出:
        `ObsException` - OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails

    - #### newFile

          public ObsFSFile newFile(String fileName,
                                   InputStream input,
                                   ObjectMetadata metadata)
                            throws ObsException

      Create a file.
      参数:
        `fileName` - File name
        `input` - File input stream
        `metadata` - File properties
      返回:
        Files in the bucket that supports the file interface
      抛出:
        `ObsException` - OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails

    - #### newFile

          public ObsFSFile newFile(String fileName,
                                   InputStream input)
                            throws ObsException

      Create a file.
      参数:
        `fileName` - File name
        `input` - File input stream
      返回:
        Files in the bucket that supports the file interface
      抛出:
        `ObsException` - OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails

    - #### newFile

          public ObsFSFile newFile(String fileName,
                                   File file,
                                   ObjectMetadata metadata)
                            throws ObsException

      Create a file.
      参数:
        `fileName` - File name
        `file` - Local path to the file
        `metadata` - File properties
      返回:
        Files in the bucket that supports the file interface
      抛出:
        `ObsException` - OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails

    - #### newFile

          public ObsFSFile newFile(String fileName,
                                   File file)
                            throws ObsException

      Create a file.
      参数:
        `fileName` - File name
        `file` - Local path to the file
      返回:
        Files in the bucket that supports the file interface
      抛出:
        `ObsException` - OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails

    - #### getBucketName

          public String getBucketName()

      Obtain the bucket name.
      返回:
        Bucket name

    - #### getLocation

          public String getLocation()

      Obtain the bucket location.
      返回:
        Bucket location

    - #### checkInternalClient

          protected void checkInternalClient()

Copyright © 2021. All rights reserved.