类 ObsFSBucket

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

public class ObsFSBucket extends Object
Buckets that support the file interface
  • 字段详细资料

    • 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()