NOISIF Platform
Toggle table of contents
80ccce4
java
Target filter
java
Switch theme
Search in API
Skip to content
NOISIF Platform
NSL HTTP
/
xyz.noisif.nsl.http.resolver.body
/
LimitedInputStream
Limited
Input
Stream
open
class
LimitedInputStream
:
InputStream
Members
Constructors
Limited
Input
Stream
Link copied to clipboard
constructor
(
delegate
:
InputStream
,
limit
:
Long
)
Properties
bytes
Read
Link copied to clipboard
private
open
var
bytesRead
:
Long
DEFAULT_
BUFFER_
SIZE
Link copied to clipboard
private
val
DEFAULT_BUFFER_SIZE
:
Int
=
16384
delegate
Link copied to clipboard
private
val
delegate
:
InputStream
limit
Link copied to clipboard
private
val
limit
:
Long
MAX_
BUFFER_
SIZE
Link copied to clipboard
private
val
MAX_BUFFER_SIZE
:
Int
=
2147483639
MAX_
SKIP_
BUFFER_
SIZE
Link copied to clipboard
private
val
MAX_SKIP_BUFFER_SIZE
:
Int
=
2048
Functions
available
Link copied to clipboard
open
fun
available
(
)
:
Int
check
Limit
Link copied to clipboard
private
open
fun
checkLimit
(
count
:
Int
)
close
Link copied to clipboard
open
fun
close
(
)
mark
Link copied to clipboard
open
fun
mark
(
readlimit
:
Int
)
mark
Supported
Link copied to clipboard
open
fun
markSupported
(
)
:
Boolean
null
Input
Stream
Link copied to clipboard
open
fun
nullInputStream
(
)
:
InputStream
read
Link copied to clipboard
open
fun
read
(
)
:
Int
open
fun
read
(
b
:
@
NonNull
Array
<
Byte
>
,
off
:
Int
,
len
:
Int
)
:
Int
read
All
Bytes
Link copied to clipboard
open
fun
readAllBytes
(
)
:
Array
<
Byte
>
read
NBytes
Link copied to clipboard
open
fun
readNBytes
(
len
:
Int
)
:
Array
<
Byte
>
open
fun
readNBytes
(
b
:
Array
<
Byte
>
,
off
:
Int
,
len
:
Int
)
:
Int
reset
Link copied to clipboard
open
fun
reset
(
)
skip
Link copied to clipboard
open
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