scala.scalajs.js.typedarray

ArrayBufferInputStream

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 any2stringfmt
  3. by any2ArrowAssoc
  4. by any2Ensuring
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ArrayBufferInputStream(buffer: ArrayBuffer)

    Convenience constructor.

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

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

    buffer

    Underlying ArrayBuffer

    offset

    Offset in bytes in buffer

    length

    Length in bytes in buffer

Value Members

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

    Definition Classes
    AnyRef
  2. final def !=(arg0: scala.Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

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

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

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

    Definition Classes
    AnyRef
  7. final def ==(arg0: scala.Any): Boolean

    Definition Classes
    Any
  8. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  9. def available(): Int

    Definition Classes
    ArrayBufferInputStream → InputStream
  10. val buffer: ArrayBuffer

    Underlying ArrayBuffer

  11. def clone(): AnyRef

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

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

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

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

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

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

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

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

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

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

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

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

    Definition Classes
    Any
  24. val length: Int

    Length in bytes in buffer

  25. def mark(readlimit: Int): Unit

    Definition Classes
    ArrayBufferInputStream → InputStream
  26. var mark: Int

    Used to persist pos when mark is called

    Used to persist pos when mark is called

    Attributes
    protected
  27. def markSupported(): Boolean

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

    Definition Classes
    AnyRef
  29. final def notify(): Unit

    Definition Classes
    AnyRef
  30. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  31. val offset: Int

    Offset in bytes in buffer

  32. def pos: Int

    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()
  33. def pos_=(x: Int): Unit

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

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

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

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

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

    Skips a given number of bytes.

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

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

    Definition Classes
    AnyRef
  40. def toString(): String

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

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

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

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

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

Shadowed Implicit Value Members

  1. val self: scala.Any

    Implicit information
    This member is added by an implicit conversion from ArrayBufferInputStream to StringAdd performed by method any2stringadd in scala.Predef.
    Shadowing
    This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
    To access this member you can use a type ascription:
    (arrayBufferInputStream: StringAdd).self
    Definition Classes
    StringAdd
  2. val self: scala.Any

    Implicit information
    This member is added by an implicit conversion from ArrayBufferInputStream to StringFormat performed by method any2stringfmt in scala.Predef.
    Shadowing
    This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
    To access this member you can use a type ascription:
    (arrayBufferInputStream: StringFormat).self
    Definition Classes
    StringFormat

Deprecated Value Members

  1. def x: ArrayBufferInputStream

    Implicit information
    This member is added by an implicit conversion from ArrayBufferInputStream to ArrowAssoc[ArrayBufferInputStream] performed by method any2ArrowAssoc in scala.Predef.
    Shadowing
    This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
    To access this member you can use a type ascription:
    (arrayBufferInputStream: ArrowAssoc[ArrayBufferInputStream]).x
    Definition Classes
    ArrowAssoc
    Annotations
    @deprecated
    Deprecated

    (Since version 2.10.0) Use leftOfArrow instead

  2. def x: ArrayBufferInputStream

    Implicit information
    This member is added by an implicit conversion from ArrayBufferInputStream to Ensuring[ArrayBufferInputStream] performed by method any2Ensuring in scala.Predef.
    Shadowing
    This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
    To access this member you can use a type ascription:
    (arrayBufferInputStream: Ensuring[ArrayBufferInputStream]).x
    Definition Classes
    Ensuring
    Annotations
    @deprecated
    Deprecated

    (Since version 2.10.0) Use resultOfEnsuring instead

Inherited from InputStream

Inherited from Closeable

Inherited from AutoCloseable

Inherited from AnyRef

Inherited from scala.Any

Inherited by implicit conversion any2stringadd from ArrayBufferInputStream to StringAdd

Inherited by implicit conversion any2stringfmt from ArrayBufferInputStream to StringFormat

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

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

Ungrouped