Represents a file-like resource tied to a given
IntegrationEntity
. The resource is file-like in that it can be read from and written to (including use in serialization and deserialization), and deleted, but it does not necessarily have to be stored in a file on disk. The data stored in a
FileResource
is always characters. If binary data is to be stored in a
FileResource
it must first be converted to characters, e.g. by Base-64 encoding the data.
A FileResource
has a defined lifespan, that coincides with either the life of the corresponding IntegrationEntity
, meaning that the resource will be deleted when the entity is deleted from the project, or with the life of the current client session, meaning that the resource will be deleted when the client is closed.
@author Torgil Zethson
@since 2.1.0