类 ObsFSFile
java.lang.Object
cn.warpin.thirdPart.huawei.obs.obs.services.internal.service.InternalHeaderResponse
cn.warpin.thirdPart.huawei.obs.obs.services.model.HeaderResponse
cn.warpin.thirdPart.huawei.obs.obs.services.model.PutObjectResult
cn.warpin.thirdPart.huawei.obs.obs.services.model.fs.ObsFSFolder
cn.warpin.thirdPart.huawei.obs.obs.services.model.fs.ObsFSFile
Files in a bucket that supports the file interface
-
字段概要
从类继承的字段 cn.warpin.thirdPart.huawei.obs.obs.services.model.fs.ObsFSFolder
innerClient从类继承的字段 cn.warpin.thirdPart.huawei.obs.obs.services.internal.service.InternalHeaderResponse
originalHeaders, responseHeaders, statusCode -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明Append data to a file.append(InputStream input) Append data to a file.Obtains file properties.drop()Delete a file.read()Obtain the file content.read(long rangeStart, long rangeEnd) Obtain the file content.Rename a file.truncate(long newLength) Truncate a file.Write data to a file.Write data to a file.write(InputStream input) Write data to a file.write(InputStream input, long position) Write data to a file.从类继承的方法 cn.warpin.thirdPart.huawei.obs.obs.services.model.fs.ObsFSFolder
checkInternalClient, dropFolder, setInnerClient从类继承的方法 cn.warpin.thirdPart.huawei.obs.obs.services.model.PutObjectResult
getBucketName, getCallbackResponseBody, getEtag, getObjectKey, getObjectStorageClass, getObjectUrl, getVersionId, setCallbackResponseBody, toString从类继承的方法 cn.warpin.thirdPart.huawei.obs.obs.services.model.HeaderResponse
getOriginalHeaders, getRequestId, getResponseHeaders, getStatusCode从类继承的方法 cn.warpin.thirdPart.huawei.obs.obs.services.internal.service.InternalHeaderResponse
setOriginalHeaders, setResponseHeaders, setStatusCode
-
构造器详细资料
-
ObsFSFile
-
-
方法详细资料
-
attribute
Obtains file properties.- 覆盖:
attribute在类中ObsFSFolder- 返回:
- File properties
- 抛出:
ObsException- OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails
-
read
Obtain the file content.- 返回:
- Response to the request for obtaining file content
- 抛出:
ObsException- OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails
-
read
Obtain the file content.- 参数:
rangeStart- Start position for reading file contentrangeEnd- End position for reading file content- 返回:
- ObsException OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails
- 抛出:
ObsException
-
write
Write data to a file.- 参数:
file- Local path to the fileposition- Start position for writing data to a 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
-
write
Write data to a file.- 参数:
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
-
write
Write data to a file.- 参数:
input- Data stream to be uploadedposition- Start position for writing data to a 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
-
append
Append data to a file.- 参数:
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
-
append
Append data to a file.- 参数:
input- Data stream to be uploaded- 返回:
- 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
-
write
Write data to a file.- 参数:
input- Data stream to be uploaded- 返回:
- 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
-
rename
Rename a file.- 覆盖:
rename在类中ObsFSFolder- 参数:
newName- New file name- 返回:
- Response to the request for renaming a file
- 抛出:
ObsException- OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails
-
truncate
Truncate a file.- 参数:
newLength- File size after the truncation- 返回:
- Response to the request for truncating a file
- 抛出:
ObsException- OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails
-
drop
Delete a file.- 返回:
- Response to the request for deleting a file
- 抛出:
ObsException- OBS SDK self-defined exception, thrown when the interface fails to be called or access to OBS fails
-