class StreamingByteReader extends ByteReader
This class extends ByteReader who's source of bytes is from a RangeReader instance.
The StreamingByteReader will read ranges of bytes (chunks) from a source using a RangeReader. If bytes are requested from it that require chunks it does not have, it will fetch those chunks and store them in memory. If the maximum number of chunks is reached, the oldest chunks will be kicked out.
- returns
A new instance of StreamingByteReader
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- StreamingByteReader
- ByteReader
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Instance Constructors
- new StreamingByteReader(rangeReader: RangeReader, chunkSize: Int = 45876)
Value Members
-
def
get: Byte
- Definition Classes
- StreamingByteReader → ByteReader
-
def
getBytes(length: Int): Array[Byte]
- Definition Classes
- StreamingByteReader → ByteReader
-
def
getChar: Char
- Definition Classes
- StreamingByteReader → ByteReader
-
def
getDouble: Double
- Definition Classes
- StreamingByteReader → ByteReader
-
def
getFloat: Float
- Definition Classes
- StreamingByteReader → ByteReader
-
def
getInt: Int
- Definition Classes
- StreamingByteReader → ByteReader
-
def
getLong: Long
- Definition Classes
- StreamingByteReader → ByteReader
-
def
getShort: Short
- Definition Classes
- StreamingByteReader → ByteReader
-
def
order(byteOrder: ByteOrder): Unit
- Definition Classes
- StreamingByteReader → ByteReader
-
def
order(): ByteOrder
- Definition Classes
- StreamingByteReader → ByteReader
-
def
position(newPosition: Long): ByteReader
- Definition Classes
- StreamingByteReader → ByteReader
-
def
position(): Long
- Definition Classes
- StreamingByteReader → ByteReader