final
class
ReadBuffer extends AnyRef
Instance Constructors
-
new
ReadBuffer(is: InputStream, bufferSize: Int)
Value Members
-
final
def
!=(arg0: Any): Boolean
-
final
def
##(): Int
-
final
def
==(arg0: Any): Boolean
-
-
final
def
asInstanceOf[T0]: T0
-
val
bufferSize: Int
-
def
bytesCount(): Long
-
def
clear(): Unit
-
def
clone(): AnyRef
-
def
compress(): Unit
-
def
consumed(): Int
-
def
discard(length: Int): Unit
-
-
-
def
finalize(): Unit
-
def
freeSpace(): Int
-
def
fullReadCount(): Long
-
def
get(): Byte
-
def
get16(): Int
-
def
get24(): Int
-
def
get31(): Int
-
def
get8(): Short
-
def
getByteArray(length: Int): ByteArray
-
final
def
getClass(): Class[_]
-
def
hasFreeSpace(): Boolean
-
def
hasLimit(): Boolean
-
def
hasPending(): Boolean
-
def
hashCode(): Int
-
val
is: InputStream
-
def
isCompressed(): Boolean
-
final
def
isInstanceOf[T0]: Boolean
-
-
final
def
notify(): Unit
-
final
def
notifyAll(): Unit
-
def
pending(): Int
-
def
readCount(): Long
-
def
remainingLimit(): Int
-
def
resetLimit(): Int
-
def
setLimit(limit: Int): Unit
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
-
def
toString(): String
-
final
def
wait(): Unit
-
final
def
wait(arg0: Long, arg1: Int): Unit
-
final
def
wait(arg0: Long): Unit
A buffer for reading bytes from an InputStream. At any time, the buffer is partitioned into three sections, from left to right: consumed, pending and free. Consumed bytes were read from the InputStream and also passed to the application. This data can be deleted. Pending bytes were read from the InputStream and not passed to the application. Free space at the end of the buffer is not occupied by useful bytes, new read from the InputStream go here.