Class

giterrific.core

RepositoryFileContent

Related Doc: package core

Permalink

case class RepositoryFileContent(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
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. RepositoryFileContent
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. AnyRef
  7. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Instance Constructors

  1. new RepositoryFileContent(name: String, content: String, encoding: String, size: Long)

    Permalink

    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.

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. val content: String

    Permalink

    The content of the file.

  7. val encoding: String

    Permalink

    The encoding used for the content of the file.

    The encoding used for the content of the file. Either base64 or utf-8.

  8. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  9. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  10. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  11. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  12. val name: String

    Permalink

    The name of the file.

  13. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  14. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  15. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  16. val size: Long

    Permalink

    The size of the file.

  17. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  18. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  19. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  20. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped