类 ObsFSBucket
java.lang.Object
com.obs.services.model.fs.ObsFSBucket
-
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明protected voidObtain the bucket name.Obtain the bucket location.Create a file.newFile(String fileName, File file, ObjectMetadata metadata) Create a file.newFile(String fileName, InputStream input) Create a file.newFile(String fileName, InputStream input, ObjectMetadata metadata) Create a file.Create a folder.setFSStatus(FSStatusEnum status) Set status of the file gateway feature for a bucket.protected voidsetInnerClient(ObsClient innerClient)
-
字段详细资料
-
innerClient
-
-
构造器详细资料
-
ObsFSBucket
-
-
方法详细资料
-
setInnerClient
-
setFSStatus
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
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 nameinput- File input streammetadata- 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
Create a file.- 参数:
fileName- File nameinput- 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
Create a file.- 参数:
fileName- File namefile- Local path to the filemetadata- 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
Create a file.- 参数:
fileName- File namefile- 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
-
getLocation
-
checkInternalClient
protected void checkInternalClient()
-