InputStream

An input data stream

InputStream.read

Reads one byte from this stream. Might throw an error if stream is async-only
overload 1:
InputStream:read()
Method Property Fluent Description Representation
Return Value an Integer

InputStream.close

Closes this input stream
overload 1:
InputStream:close()
Method Property Fluent Description Representation
Return Value nil

InputStream.mark

Marks current position in input stream
overload 1:
InputStream:mark(readLimit)
Method Property Fluent Description Representation
readLimit accepts an Integer
Return Value nil

InputStream.transferTo

Transfers left data in this input stream to provided output stream
overload 1:
InputStream:transferTo(out)
Method Property Fluent Description Representation
out accepts an OutputStream
Return Value an Integer

InputStream.skip

Skips specified amount of bytes in stream. Returns the actual amount of bytes skipped
overload 1:
InputStream:skip(n)
Method Property Fluent Description Representation
n accepts an Integer
Return Value an Integer

InputStream.available

Returns amount of bytes available
overload 1:
InputStream:available()
Method Property Fluent Description Representation
Return Value an Integer

InputStream.markSupported

Does this input stream supports marking or not
overload 1:
InputStream:markSupported()
Method Property Fluent Description Representation
Return Value a Boolean

InputStream.reset

Resets input stream position to mark
overload 1:
InputStream:reset()
Method Property Fluent Description Representation
Return Value nil

InputStream.isAsyncOnly

Is this stream async-only or not
overload 1:
InputStream:isAsyncOnly()
Method Property Fluent Description Representation
Return Value a Boolean

InputStream.readAsync

Starts reading specified amount of bytes from this stream and returns future that will contain byte array of stream bytes once done
overload 1:
InputStream:readAsync()
Method Property Fluent Description Representation
Return Value a Future
a a