|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.baidubce.services.bos.model.BosObject
public class BosObject
Represents an object stored in Baidu Bos. This object contains the data content and the object metadata stored by Baidu Bos, such as content type, content length, etc.
Constructor Summary | |
---|---|
BosObject()
|
Method Summary | |
---|---|
void |
close()
|
String |
getBucketName()
Gets the name of the bucket in which this object is contained. |
String |
getKey()
Gets the key under which this object is stored. |
BosObjectInputStream |
getObjectContent()
Gets an input stream containing the contents of this object. |
ObjectMetadata |
getObjectMetadata()
Gets the metadata stored by Bos for this object. |
void |
setBucketName(String bucketName)
Sets the name of the bucket in which this object is contained. |
void |
setKey(String key)
Sets the key under which this object is stored. |
void |
setObjectContent(BosObjectInputStream objectContent)
Sets the input stream containing this object's contents. |
void |
setObjectMetadata(ObjectMetadata objectMetadata)
Sets the object metadata for this object. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public BosObject()
Method Detail |
---|
public String getBucketName()
public void setBucketName(String bucketName)
bucketName
- The name of the bucket containing this object.public String getKey()
public void setKey(String key)
key
- The key under which this object is stored.public ObjectMetadata getObjectMetadata()
public void setObjectMetadata(ObjectMetadata objectMetadata)
objectMetadata
- The new metadata to set for this object in memory.public BosObjectInputStream getObjectContent()
public void setObjectContent(BosObjectInputStream objectContent)
objectContent
- The input stream containing this object's contents.public String toString()
toString
in class Object
public void close() throws IOException
close
in interface Closeable
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |