|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface StorageObject
A storage object is a Version that has the priveledged property "content" that contains an arbitrarily large byte stream. The StorageObject interface provides access to those bytes. Importers should set the property: XirussRepositoryConst.ObjPropNames.MIME_TYPE When characters are written to the storage object.
Method Summary | |
---|---|
boolean |
canWrite()
Checks if the storage object can be written to (because it is not fixed and is not already open). |
void |
close()
Closes the storage object if it has been opened for writing via getWriter(); |
byte[] |
getBytes()
Gets the bytes of the storage object's content (as distinct from its other properties). |
java.lang.String |
getMimeType()
Returns the MIME type of the storage object. |
java.lang.String |
getOriginalSystemId()
Gets the value of the original system ID property, if any. |
long |
length()
Returns the length, in bytes, of the storage object content |
java.io.InputStream |
openInputStream()
|
java.io.OutputStream |
openOutputStream()
Opens an output stream for writing to the storage object. |
void |
setStorageObjectData(StorageObjectData data)
Sets the storage object data object that provides access to the data as managed by the repository's storage manager. |
Methods inherited from interface org.xiruss.snapcm.api.Version |
---|
addDependency, addNextVersion, addPreviousVersion, checkIsNotFixed, collectTargetVersions, dependsOn, dependsOn, getDependencies, getDependenciesByType, getNext, getPrevious, getResource, initialize, initialize, isFixed, setAsFixed, setPrevious |
Methods inherited from interface org.xiruss.snapcm.api.RepositoryObject |
---|
accept, compareTo, getId, getName, getProperties, getProperty, getPropertyNames, getRepository, getType, hasProperty, initialize, isNull, setId, setName, setProperty, toString |
Method Detail |
---|
byte[] getBytes() throws java.io.IOException
java.io.IOException
java.lang.String getOriginalSystemId()
long length()
java.lang.String getMimeType()
java.io.OutputStream openOutputStream() throws VersionMutationException, java.io.IOException
VersionMutationException
- if version is fixed.
java.io.IOException
- if storage object is already open.void close() throws java.io.IOException
java.io.IOException
boolean canWrite()
void setStorageObjectData(StorageObjectData data)
data
- StorageObjectData instancejava.io.InputStream openInputStream() throws java.io.IOException
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |