public class UESStorageObject
extends java.lang.Object
UESSharedStorage
.
Usage constraints:
Modifier and Type | Field and Description |
---|---|
private java.io.File |
inputFile
File which is represented by this UES storage object.
|
private java.io.InputStream |
inputStream
Input stream which contains data represented by this UES storage object.
|
private UESMetadata |
metadata
Metadata associated with the storage object.
|
private java.lang.String |
objectId
Identifier of this instance of UES storage object.
|
Constructor and Description |
---|
UESStorageObject(java.lang.String objectId,
Creates a new instance of UESStorageObject.
|
UESStorageObject(java.lang.String objectId,
Creates a new instance of UESStorageObject.
|
Modifier and Type | Method and Description |
---|---|
java.io.File |
getFile()
Returns file with the storage object contents (if this instance was created with file parameter).
|
java.lang.String |
getID()
The ID under which this object is stored.
|
java.io.InputStream |
getInputStream()
Returns input stream with the storage object contents.
|
UESMetadata |
getMetadata()
Gets the metadata stored by UDDS for this object.
|
private void |
setFile(java.io.File file)
Sets file with the storage object contents.
|
void |
setID(java.lang.String objectId)
Sets the ID under which this object is stored.
|
private void |
setInputStream(java.io.InputStream is)
Sets input stream with the storage object contents.
|
void |
setMetadata(UESMetadata metadata)
For internal use only.
|
java.lang.String |
toString() |
objectId
- The ID under which this object is stored.file
- The file containing this object's contents.contentLength
- Size of the file contents in bytes.contentType
- Type of the file contents (can be null
).objectId
- The ID under which this object is stored.inputStream
- The input stream containing this object's contents.contentLength
- Size of the input stream contents in bytes.contentType
- Type of the input stream contents (can be null
).objectId
- The ID under which is this object stored. Valid characters
for object ID are: small letters from english alphabet (a-z), digits (0-9),
slash (/) and dash (-). Object ID cannot ends with dash.Important: It is the caller's responsibility to close the object's data input stream. The data stream should be consumed and closed as soon as is practical as network connections may be held open until the streams are closed. Excessive unclosed streams can lead to connection starvation.
is
- Input stream with the contents.null
.file
- File with the contents.metadata
- The metadata.UESStorageServiceRTException
- If the metadata parameter is null.toString
in class java.lang.Object
Object.toString()