org.xiruss.repository.api
Interface FileStorageObject
- All Superinterfaces:
- RepositoryObject, StorageObject, Version
public interface FileStorageObject
- extends StorageObject
Methods that all File storage objects must implement.
Method Summary |
byte[] |
getBytes()
Gets the bytes of the storage object's content (as distinct from its other properties). |
void |
setRealFile(java.io.File realFile)
Sets the real file system file that underlies the
file storage object in the 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 |
setRealFile
void setRealFile(java.io.File realFile)
throws java.io.IOException,
VersionMutationException
- Sets the real file system file that underlies the
file storage object in the storage manager.
- Parameters:
realFile
-
- Throws:
java.io.IOException
VersionMutationException
getBytes
byte[] getBytes()
throws java.io.IOException
- Description copied from interface:
StorageObject
- Gets the bytes of the storage object's content (as distinct from its other properties).
- Specified by:
getBytes
in interface StorageObject
- Returns:
- Byte array
- Throws:
java.io.IOException