|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xiruss.xirussrepository.client.RepositoryObjectProxy
org.xiruss.xirussrepository.client.VersionProxy
org.xiruss.xirussrepository.client.StorageObjectProxy
public class StorageObjectProxy
| Field Summary |
|---|
| Fields inherited from class org.xiruss.xirussrepository.client.RepositoryObjectProxy |
|---|
cHelper, logger, objectTypeCode, pathToMe |
| Constructor Summary | |
|---|---|
StorageObjectProxy()
|
|
StorageObjectProxy(XirussHttpApiClientHelper helper,
org.w3c.dom.Element dataSource)
|
|
| 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. |
void |
initialize(XirussHttpApiClientHelper helper,
org.w3c.dom.Element dataSource)
|
long |
length()
Returns the length, in bytes, of the storage object content |
protected void |
loadStorageObjectData(XirussHttpApiClientHelper helper,
org.w3c.dom.Element dataSource)
|
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 class org.xiruss.xirussrepository.client.VersionProxy |
|---|
addDependency, addNextVersion, addPreviousVersion, checkIsNotFixed, collectTargetVersions, dependsOn, dependsOn, getDependencies, getDependenciesByType, getNext, getPathInSnapshotContext, getPrevious, getResource, getVersionMapValue, initialize, initialize, isFixed, loadVersionData, setAsFixed, setPrevious |
| Methods inherited from class org.xiruss.xirussrepository.client.RepositoryObjectProxy |
|---|
accept, compareTo, doPost, doStringReturnPost, equals, getBooleanValue, getId, getName, getOriginalClassName, getPathToMe, getProperties, getProperty, getPropertyNames, getRepository, getStringReturnValue, getStringSetReturnValue, getType, hasProperty, initialize, isNull, loadRepositoryObjectData, setId, setName, setProperty, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| 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 |
| Constructor Detail |
|---|
public StorageObjectProxy()
public StorageObjectProxy(XirussHttpApiClientHelper helper,
org.w3c.dom.Element dataSource)
throws XirussRepositoryException
XirussRepositoryException| Method Detail |
|---|
protected void loadStorageObjectData(XirussHttpApiClientHelper helper,
org.w3c.dom.Element dataSource)
throws XirussRepositoryException
XirussRepositoryException
public void initialize(XirussHttpApiClientHelper helper,
org.w3c.dom.Element dataSource)
throws XirussRepositoryException
initialize in class VersionProxyXirussRepositoryException
public byte[] getBytes()
throws java.io.IOException
StorageObject
getBytes in interface StorageObjectjava.io.IOExceptionpublic java.lang.String getOriginalSystemId()
StorageObject
getOriginalSystemId in interface StorageObjectpublic long length()
StorageObject
length in interface StorageObjectpublic java.lang.String getMimeType()
StorageObject
getMimeType in interface StorageObject
public java.io.OutputStream openOutputStream()
throws VersionMutationException,
java.io.IOException
StorageObject
openOutputStream in interface StorageObjectVersionMutationException - if version is fixed.
java.io.IOException - if storage object is already open.
public void close()
throws java.io.IOException
StorageObject
close in interface StorageObjectjava.io.IOExceptionpublic boolean canWrite()
StorageObject
canWrite in interface StorageObjectpublic void setStorageObjectData(StorageObjectData data)
StorageObject
setStorageObjectData in interface StorageObjectdata - StorageObjectData instance
public java.io.InputStream openInputStream()
throws java.io.IOException
openInputStream in interface StorageObjectjava.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||