Packages

class Blob extends Object with StObject

Annotations
@JSType() @JSImport("buffer", "Blob") @native()
Linear Supertypes
StObject, Object, Any, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Blob
  2. StObject
  3. Object
  4. Any
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new Blob(sources: Array[|[BinaryLike, Blob]], options: BlobOptions)
  2. new Blob(sources: Array[|[BinaryLike, Blob]])

    Creates a new Blob object containing a concatenation of the given sources.

    Creates a new Blob object containing a concatenation of the given sources.

    {ArrayBuffer}, {TypedArray}, {DataView}, and {Buffer} sources are copied into the 'Blob' and can therefore be safely modified after the 'Blob' is created.

    String sources are also copied into the Blob.

  3. new Blob()
    Attributes
    protected

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def arrayBuffer(): Promise[ArrayBuffer]

    Returns a promise that fulfills with an [ArrayBuffer](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer) containing a copy of the Blob data.

    Returns a promise that fulfills with an [ArrayBuffer](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer) containing a copy of the Blob data.

    Since

    v15.7.0

  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
  7. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  8. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  9. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  10. def hasOwnProperty(v: String): Boolean
    Definition Classes
    Object
  11. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  12. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  13. def isPrototypeOf(v: Object): Boolean
    Definition Classes
    Object
  14. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  15. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  16. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  17. def propertyIsEnumerable(v: String): Boolean
    Definition Classes
    Object
  18. val size: Double

    The total size of the Blob in bytes.

    The total size of the Blob in bytes.

    Since

    v15.7.0

  19. def slice(start: Unit, end: Unit, type: String): Blob
  20. def slice(start: Unit, end: Double, type: String): Blob
  21. def slice(start: Unit, end: Double): Blob
  22. def slice(start: Double, end: Unit, type: String): Blob
  23. def slice(start: Double, end: Double, type: String): Blob
  24. def slice(start: Double, end: Double): Blob
  25. def slice(start: Double): Blob
  26. def slice(): Blob

    Creates and returns a new Blob containing a subset of this Blob objects data.

    Creates and returns a new Blob containing a subset of this Blob objects data. The original Blob is not altered.

    Since

    v15.7.0

  27. def stream(): Any

    Returns a new ReadableStream that allows the content of the Blob to be read.

    Returns a new ReadableStream that allows the content of the Blob to be read.

    Since

    v16.7.0

  28. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  29. def text(): Promise[String]

    Returns a promise that fulfills with the contents of the Blob decoded as a UTF-8 string.

    Returns a promise that fulfills with the contents of the Blob decoded as a UTF-8 string.

    Since

    v15.7.0

  30. def toLocaleString(): String
    Definition Classes
    Object
  31. def toString(): String
    Definition Classes
    AnyRef → Any
  32. val type: String

    The content-type of the Blob.

    The content-type of the Blob.

    Since

    v15.7.0

  33. def valueOf(): Any
    Definition Classes
    Object
  34. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  35. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  36. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

Inherited from StObject

Inherited from Object

Inherited from Any

Inherited from AnyRef

Inherited from Any

Ungrouped