InputStream
in package
implements
IteratorAggregate
Provides a way to continuously write to the input of a Process until the InputStream is closed.
Tags
Table of Contents
Interfaces
- IteratorAggregate
Properties
Methods
- close() : mixed
- Closes the write buffer.
- getIterator() : Traversable
- isClosed() : mixed
- Tells whether the write buffer is closed or not.
- onEmpty() : mixed
- Sets a callback that is called when the write buffer becomes empty.
- write() : mixed
- Appends an input to the write buffer.
Properties
$input
private
mixed
$input
= []
$onEmpty
private
callable|null
$onEmpty
= null
$open
private
mixed
$open
= true
Methods
close()
Closes the write buffer.
public
close() : mixed
getIterator()
public
getIterator() : Traversable
Attributes
Return values
TraversableisClosed()
Tells whether the write buffer is closed or not.
public
isClosed() : mixed
onEmpty()
Sets a callback that is called when the write buffer becomes empty.
public
onEmpty([callable $onEmpty = null ]) : mixed
Parameters
- $onEmpty : callable = null
write()
Appends an input to the write buffer.
public
write(resource|string|int|float|bool|Traversable|null $input) : mixed
Parameters
- $input : resource|string|int|float|bool|Traversable|null
-
The input to append as scalar, stream resource or \Traversable