Class

spray.http.HttpData

FileBytes

Related Doc: package HttpData

Permalink

case class FileBytes extends SimpleNonEmpty with Product with Serializable

Linear Supertypes
Serializable, Serializable, Product, Equals, SimpleNonEmpty, NonEmpty, HttpData, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. FileBytes
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. SimpleNonEmpty
  7. NonEmpty
  8. HttpData
  9. AnyRef
  10. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  3. def +:(other: HttpData): NonEmpty

    Permalink

    Efficiently prepends this instance with another HttpData instance to possibly form a compound instance.

    Efficiently prepends this instance with another HttpData instance to possibly form a compound instance. No data need to be copied around to do this.

    Definition Classes
    NonEmptyHttpData
  4. final def ==(arg0: Any): Boolean

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

    Permalink
    Definition Classes
    Any
  6. def asString(charset: Charset): String

    Permalink

    Returns the contents of this instance as a string.

    Returns the contents of this instance as a string.

    CAUTION: Since this instance might point to bytes contained in an off-memory file this method might cause the loading of a large amount of data into the JVM heap (up to 2 GB!). If this instance is a FileBytes instance containing more than 2GB of data the method will throw an IllegalArgumentException.

    Definition Classes
    HttpData
  7. def asString(charset: HttpCharset): String

    Permalink

    Returns the contents of this instance as a string.

    Returns the contents of this instance as a string.

    CAUTION: Since this instance might point to bytes contained in an off-memory file this method might cause the loading of a large amount of data into the JVM heap (up to 2 GB!). If this instance is a FileBytes instance containing more than 2GB of data the method will throw an IllegalArgumentException.

    Definition Classes
    HttpData
  8. def asString: String

    Permalink

    Returns the contents of this instance as a string (using UTF-8 encoding).

    Returns the contents of this instance as a string (using UTF-8 encoding).

    CAUTION: Since this instance might point to bytes contained in an off-memory file this method might cause the loading of a large amount of data into the JVM heap (up to 2 GB!). If this instance is a FileBytes instance containing more than 2GB of data the method will throw an IllegalArgumentException.

    Definition Classes
    HttpData
  9. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  10. def copyToArray(xs: Array[Byte], sourceOffset: Long = 0, targetOffset: Int = 0, span: Int = length.toInt): Unit

    Permalink

    Extracts span bytes from this instance starting at sourceOffset and copies them to the xs starting at targetOffset.

    Extracts span bytes from this instance starting at sourceOffset and copies them to the xs starting at targetOffset. If span is larger than the number of bytes available in this instance after the sourceOffset or if xs has less space available after targetOffset the number of bytes copied is decreased accordingly (i.e. it is not an error to specify a span that is too large).

    Definition Classes
    FileBytesHttpData
  11. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  12. val fileName: String

    Permalink
  13. def finalize(): Unit

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

    Permalink
    Definition Classes
    AnyRef → Any
  15. def hasFileBytes: Boolean

    Permalink

    Determines whether this instance is or contains data that are not already present in the JVM heap (i.e.

    Determines whether this instance is or contains data that are not already present in the JVM heap (i.e. instance of HttpData.FileBytes).

    Definition Classes
    HttpData
  16. def isEmpty: Boolean

    Permalink

    Determines whether this instance is identical to HttpData.Empty.

    Determines whether this instance is identical to HttpData.Empty.

    Definition Classes
    HttpData
  17. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  18. val length: Long

    Permalink

    Returns the number of bytes contained in this instance.

    Returns the number of bytes contained in this instance.

    Definition Classes
    FileBytesHttpData
  19. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  20. def nonEmpty: Boolean

    Permalink

    Determines whether this instance is different from HttpData.Empty.

    Determines whether this instance is different from HttpData.Empty.

    Definition Classes
    HttpData
  21. final def notify(): Unit

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

    Permalink
    Definition Classes
    AnyRef
  23. val offset: Long

    Permalink
  24. def slice(offset: Long, span: Long): HttpData

    Permalink

    Returns a slice of this instance as an HttpData.

    Returns a slice of this instance as an HttpData.

    Definition Classes
    FileBytesHttpData
  25. def sliceBytes(offset: Long, span: Int): ByteString

    Permalink

    Returns a slice of this instance's content as a ByteString.

    Returns a slice of this instance's content as a ByteString.

    CAUTION: Since this instance might point to bytes contained in an off-memory file this method might cause the loading of a large amount of data into the JVM heap (up to 2 GB!).

    Definition Classes
    NonEmptyHttpData
  26. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  27. def toByteArray: Array[Byte]

    Permalink

    Copies the contents of this instance into a new byte array.

    Copies the contents of this instance into a new byte array.

    CAUTION: Since this instance might point to bytes contained in an off-memory file this method might cause the loading of a large amount of data into the JVM heap (up to 2 GB!). If this instance is a FileBytes instance containing more than 2GB of data the method will throw an IllegalArgumentException.

    Definition Classes
    NonEmptyHttpData
  28. def toByteString: ByteString

    Permalink

    Same as toByteArray but returning a ByteString instead.

    Same as toByteArray but returning a ByteString instead. More efficient if this instance is a Bytes instance since no data will have to be copied and the ByteString will not have to be newly created.

    CAUTION: Since this instance might point to bytes contained in an off-memory file this method might cause the loading of a large amount of data into the JVM heap (up to 2 GB!). If this instance is a FileBytes instance containing more than 2GB of data the method will throw an IllegalArgumentException.

    Definition Classes
    FileBytesHttpData
  29. def toChunkStream(maxChunkSize: Long): Stream[HttpData]

    Permalink

    Returns the contents of this instance as a Stream[HttpData] with each chunk not being larger than the given maxChunkSize.

    Returns the contents of this instance as a Stream[HttpData] with each chunk not being larger than the given maxChunkSize.

    Definition Classes
    NonEmptyHttpData
  30. def toString(): String

    Permalink
    Definition Classes
    SimpleNonEmpty → AnyRef → Any
  31. final def wait(): Unit

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  33. 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 SimpleNonEmpty

Inherited from NonEmpty

Inherited from HttpData

Inherited from AnyRef

Inherited from Any

Ungrouped