Package org.opencms.file
Class CmsStoredContentInfo
java.lang.Object
org.opencms.file.CmsStoredContentInfo
Describes where the binary content for a VFS resource is stored without loading the content bytes.
-
Constructor Summary
ConstructorsConstructorDescriptionCmsStoredContentInfo(CmsResource resource, String storage, String hash, long length) Creates a new stored content info instance. -
Method Summary
Modifier and TypeMethodDescriptiongetHash()Returns the content hash.longReturns the content length.Returns the resource.Returns the storage identifier.booleanReturns if the content is externally stored.booleanisStoredIn(String storage) Returns if the content is stored in the given storage backend.
-
Constructor Details
-
CmsStoredContentInfo
Creates a new stored content info instance.- Parameters:
resource- the resourcestorage- the storage identifierhash- the content hashlength- the content length
-
-
Method Details
-
getHash
Returns the content hash.- Returns:
- the content hash
-
getLength
Returns the content length.- Returns:
- the content length
-
getResource
Returns the resource.- Returns:
- the resource
-
getStorage
Returns the storage identifier.- Returns:
- the storage identifier
-
isExternallyStored
Returns if the content is externally stored.- Returns:
trueif the content is externally stored
-
isStoredIn
Returns if the content is stored in the given storage backend.- Parameters:
storage- the storage identifier- Returns:
trueif the content is stored in the given storage backend
-