case classRepositoryFileContent(name: String, content: String, encoding: String, size: Long) extends Product with Serializable
A data structure representing the file content of a file within the repository.
This data structure is only capable of representing files up to the available memory limit of the
JVM. The underlying implementation (provided by JGit's ObjectLoader) works a little empirically
by attempting to allocate a byte array large enough to hold the file and catching an OutOfMemoryError
if one occurs during that attempt.
If we are able to create this data structure, it will contain the content encoded in the specified
encoding - which will either be "base64" or "utf8".
name
The name of the file.
content
The content of the file.
encoding
The encoding used for the content of the file. Either base64 or utf-8.
size
The size of the file.
Linear Supertypes
Serializable, Serializable, Product, Equals, AnyRef, Any
A data structure representing the file content of a file within the repository.
This data structure is only capable of representing files up to the available memory limit of the JVM. The underlying implementation (provided by JGit's ObjectLoader) works a little empirically by attempting to allocate a byte array large enough to hold the file and catching an OutOfMemoryError if one occurs during that attempt.
If we are able to create this data structure, it will contain the
content
encoded in the specifiedencoding
- which will either be "base64" or "utf8".The name of the file.
The content of the file.
The encoding used for the content of the file. Either base64 or utf-8.
The size of the file.