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).
- Alphabetic
- By Inheritance
- ArrayBufferInputStream
- InputStream
- Closeable
- AutoCloseable
- AnyRef
- Any
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- All
Instance Constructors
-
new
ArrayBufferInputStream(buffer: ArrayBuffer)
Convenience constructor.
Convenience constructor. Strictly equivalent to {{new ArrayBufferInputStream(buffer, 0, buffer.byteLength)}
- new ArrayBufferInputStream(buffer: ArrayBuffer, offset: Int, length: Int)
Value Members
-
final
def
!=(arg0: scala.Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
def
+(other: String): String
- Implicit
- This member is added by an implicit conversion from ArrayBufferInputStream to any2stringadd[ArrayBufferInputStream] performed by method any2stringadd in scala.Predef.
- Definition Classes
- any2stringadd
-
def
->[B](y: B): (ArrayBufferInputStream, B)
- Implicit
- 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()
-
final
def
==(arg0: scala.Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
available(): Int
- Definition Classes
- ArrayBufferInputStream → InputStream
- val buffer: ArrayBuffer
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
def
close(): Unit
- Definition Classes
- InputStream → Closeable → AutoCloseable
- Annotations
- @throws( classOf[java.io.IOException] )
-
def
ensuring(cond: (ArrayBufferInputStream) ⇒ Boolean, msg: ⇒ scala.Any): ArrayBufferInputStream
- Implicit
- This member is added by an implicit conversion from ArrayBufferInputStream to Ensuring[ArrayBufferInputStream] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
def
ensuring(cond: (ArrayBufferInputStream) ⇒ Boolean): ArrayBufferInputStream
- Implicit
- This member is added by an implicit conversion from ArrayBufferInputStream to Ensuring[ArrayBufferInputStream] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
def
ensuring(cond: Boolean, msg: ⇒ scala.Any): ArrayBufferInputStream
- Implicit
- This member is added by an implicit conversion from ArrayBufferInputStream to Ensuring[ArrayBufferInputStream] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
def
ensuring(cond: Boolean): ArrayBufferInputStream
- Implicit
- This member is added by an implicit conversion from ArrayBufferInputStream to Ensuring[ArrayBufferInputStream] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: scala.Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
formatted(fmtstr: String): String
- Implicit
- 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()
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val length: Int
-
def
mark(readlimit: Int): Unit
- Definition Classes
- ArrayBufferInputStream → InputStream
-
var
mark: Int
Used to persist pos when mark is called
Used to persist pos when mark is called
- Attributes
- protected
-
def
markSupported(): Boolean
- Definition Classes
- ArrayBufferInputStream → InputStream
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- val offset: Int
-
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()
-
def
pos_=(x: Int): Unit
- Attributes
- protected
- Annotations
- @inline()
-
def
read(b: scala.Array[Byte], off: Int, reqLen: Int): Int
- Definition Classes
- ArrayBufferInputStream → InputStream
-
def
read(): Int
- Definition Classes
- ArrayBufferInputStream → InputStream
-
def
read(arg0: scala.Array[Byte]): Int
- Definition Classes
- InputStream
- Annotations
- @throws( classOf[java.io.IOException] )
-
def
reset(): Unit
- Definition Classes
- ArrayBufferInputStream → InputStream
-
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
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
def
→[B](y: B): (ArrayBufferInputStream, B)
- Implicit
- This member is added by an implicit conversion from ArrayBufferInputStream to ArrowAssoc[ArrayBufferInputStream] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc