Readium
Toggle table of contents
androidJvm
Target filter
androidJvm
Switch theme
Search in API
Skip to content
Readium
readium-shared
/
org.readium.r2.shared.util.io
/
CountingInputStream
Counting
Input
Stream
class
CountingInputStream
(
inputStream
:
InputStream
,
initialCount
:
Long
=
0
)
:
FilterInputStream
An
InputStream
counting the number of bytes read from a wrapped
inputStream
.
Members
Constructors
Counting
Input
Stream
Link copied to clipboard
constructor
(
inputStream
:
InputStream
,
initialCount
:
Long
=
0
)
Properties
count
Link copied to clipboard
var
count
:
Long
Functions
available
Link copied to clipboard
open
fun
available
(
)
:
Int
close
Link copied to clipboard
open
fun
close
(
)
mark
Link copied to clipboard
open
override
fun
mark
(
readlimit
:
Int
)
mark
Supported
Link copied to clipboard
open
fun
markSupported
(
)
:
Boolean
read
Link copied to clipboard
open
fun
read
(
b
:
ByteArray
?
)
:
Int
open
override
fun
read
(
)
:
Int
open
override
fun
read
(
b
:
ByteArray
?
,
off
:
Int
,
len
:
Int
)
:
Int
read
All
Bytes
Link copied to clipboard
open
fun
readAllBytes
(
)
:
ByteArray
?
read
NBytes
Link copied to clipboard
open
fun
readNBytes
(
len
:
Int
)
:
ByteArray
?
open
fun
readNBytes
(
b
:
ByteArray
?
,
off
:
Int
,
len
:
Int
)
:
Int
read
Range
Link copied to clipboard
fun
readRange
(
range
:
LongRange
)
:
ByteArray
reset
Link copied to clipboard
open
override
fun
reset
(
)
skip
Link copied to clipboard
open
override
fun
skip
(
n
:
Long
)
:
Long
skip
NBytes
Link copied to clipboard
open
fun
skipNBytes
(
n
:
Long
)
transfer
To
Link copied to clipboard
open
fun
transferTo
(
out
:
OutputStream
?
)
:
Long