Class

scala.scalajs.js.typedarray

ArrayBufferInputStream

Related Doc: package typedarray

Permalink

class ArrayBufferInputStream extends InputStream

ECMAScript 6 A java.io.InputStream wrapping a JavaScript ArrayBuffer

This class is extremely similar to a ByteArrayInputStream, but uses ArrayBuffers as the underlying representation. Stream implementations may special case on this stream for better performance and access the underlying buffer directly. (They still need to make sure the internal pointers are properly aligned though).

This stream has several public members (n.b. buffer, offset, length and pos) in order to allow JavaScript aware applications to special case on this kind of stream and access the underlying ArrayBuffer directly for efficiency. In this case it is the client's responsibility to synchronize pos, as if the stream were read normally (if the context in which it is used requires this).

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ArrayBufferInputStream
  2. InputStream
  3. Closeable
  4. AutoCloseable
  5. AnyRef
  6. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ArrayBufferInputStream(buffer: ArrayBuffer)

    Permalink

    Convenience constructor.

    Convenience constructor. Strictly equivalent to {{new ArrayBufferInputStream(buffer, 0, buffer.byteLength)}

  2. new ArrayBufferInputStream(buffer: ArrayBuffer, offset: Int, length: Int)

    Permalink

    buffer

    Underlying ArrayBuffer

    offset

    Offset in bytes in buffer

    length

    Length in bytes in buffer

Value Members

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

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

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

    Permalink
    Implicit information
    This member is added by an implicit conversion from ArrayBufferInputStream to any2stringadd[ArrayBufferInputStream] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  4. def ->[B](y: B): (ArrayBufferInputStream, B)

    Permalink
    Implicit information
    This member is added by an implicit conversion from ArrayBufferInputStream to ArrowAssoc[ArrayBufferInputStream] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  5. final def ==(arg0: scala.Any): Boolean

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

    Permalink
    Definition Classes
    Any
  7. def available(): Int

    Permalink
    Definition Classes
    ArrayBufferInputStream → InputStream
  8. val buffer: ArrayBuffer

    Permalink

    Underlying ArrayBuffer

  9. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  10. def close(): Unit

    Permalink
    Definition Classes
    InputStream → Closeable → AutoCloseable
    Annotations
    @throws( classOf[java.io.IOException] )
  11. def ensuring(cond: (ArrayBufferInputStream) ⇒ Boolean, msg: ⇒ scala.Any): ArrayBufferInputStream

    Permalink
    Implicit information
    This member is added by an implicit conversion from ArrayBufferInputStream to Ensuring[ArrayBufferInputStream] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  12. def ensuring(cond: (ArrayBufferInputStream) ⇒ Boolean): ArrayBufferInputStream

    Permalink
    Implicit information
    This member is added by an implicit conversion from ArrayBufferInputStream to Ensuring[ArrayBufferInputStream] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  13. def ensuring(cond: Boolean, msg: ⇒ scala.Any): ArrayBufferInputStream

    Permalink
    Implicit information
    This member is added by an implicit conversion from ArrayBufferInputStream to Ensuring[ArrayBufferInputStream] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  14. def ensuring(cond: Boolean): ArrayBufferInputStream

    Permalink
    Implicit information
    This member is added by an implicit conversion from ArrayBufferInputStream to Ensuring[ArrayBufferInputStream] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  15. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  16. def equals(arg0: scala.Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  17. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  18. def formatted(fmtstr: String): String

    Permalink
    Implicit information
    This member is added by an implicit conversion from ArrayBufferInputStream to StringFormat[ArrayBufferInputStream] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  19. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  20. def hashCode(): Int

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

    Permalink
    Definition Classes
    Any
  22. val length: Int

    Permalink

    Length in bytes in buffer

  23. def mark(readlimit: Int): Unit

    Permalink
    Definition Classes
    ArrayBufferInputStream → InputStream
  24. var mark: Int

    Permalink

    Used to persist pos when mark is called

    Used to persist pos when mark is called

    Attributes
    protected
  25. def markSupported(): Boolean

    Permalink
    Definition Classes
    ArrayBufferInputStream → InputStream
  26. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  29. val offset: Int

    Permalink

    Offset in bytes in buffer

  30. def pos: Int

    Permalink

    Next byte to read in the buffer (after adding offset).

    Next byte to read in the buffer (after adding offset).

    Use skip to update (protects from overrun and moving backwards).

    Annotations
    @inline()
  31. def pos_=(x: Int): Unit

    Permalink
    Attributes
    protected
    Annotations
    @inline()
  32. def read(b: scala.Array[Byte], off: Int, reqLen: Int): Int

    Permalink
    Definition Classes
    ArrayBufferInputStream → InputStream
  33. def read(): Int

    Permalink
    Definition Classes
    ArrayBufferInputStream → InputStream
  34. def read(arg0: scala.Array[Byte]): Int

    Permalink
    Definition Classes
    InputStream
    Annotations
    @throws( classOf[java.io.IOException] )
  35. def reset(): Unit

    Permalink
    Definition Classes
    ArrayBufferInputStream → InputStream
  36. def skip(n: Long): Long

    Permalink

    Skips a given number of bytes.

    Skips a given number of bytes. Always skips the maximum number possible

    Definition Classes
    ArrayBufferInputStream → InputStream
  37. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  38. def toString(): String

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

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  42. def [B](y: B): (ArrayBufferInputStream, B)

    Permalink
    Implicit information
    This member is added by an implicit conversion from ArrayBufferInputStream to ArrowAssoc[ArrayBufferInputStream] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc

Inherited from InputStream

Inherited from Closeable

Inherited from AutoCloseable

Inherited from AnyRef

Inherited from scala.Any

Inherited by implicit conversion any2stringadd from ArrayBufferInputStream to any2stringadd[ArrayBufferInputStream]

Inherited by implicit conversion StringFormat from ArrayBufferInputStream to StringFormat[ArrayBufferInputStream]

Inherited by implicit conversion Ensuring from ArrayBufferInputStream to Ensuring[ArrayBufferInputStream]

Inherited by implicit conversion ArrowAssoc from ArrayBufferInputStream to ArrowAssoc[ArrayBufferInputStream]

Ungrouped