| Modifier and Type | Method and Description |
|---|---|
InputStream |
getContent()
Gets content of the file.
|
InputStream |
getContent4Version(CommonVersion version)
Returns content of specified version of the file.
|
String |
getMimeType()
Gets mime type of the file.
|
long |
getSize()
Returns size of the file's content in bytes.
|
void |
revertToVersion(String versionName)
Reverts the file to specified version.
|
void |
setContent(InputStream inputStream)
Sets/Updates content of the file.
|
addProperty, commit, delete, getActiveVersion, getEffectiveDate, getExpirationDate, getLineOfBusiness, getLock, getName, getPath, getProperties, getProperty, getProps, getVersionHistory, hasProperty, isLocked, lock, removeProperty, setEffectiveDate, setExpirationDate, setLineOfBusiness, setProps, unlockInputStream getContent() throws RRepositoryException
RRepositoryException - if failedInputStream getContent4Version(CommonVersion version) throws RRepositoryException
version - specified versionRRepositoryException - if failedString getMimeType()
long getSize()
-1 if cannot determine it.void revertToVersion(String versionName) throws RRepositoryException
versionName - name of versionRRepositoryException - if failedvoid setContent(InputStream inputStream) throws RRepositoryException
inputStream - stream with new content of the fileRModifyException - if failedRRepositoryExceptionCopyright © 2018. All rights reserved.