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() : mixed
- 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
= array()
$onEmpty
private
mixed
$onEmpty
= null
$open
private
mixed
$open
= true
Methods
close()
Closes the write buffer.
public
close() : mixed
getIterator()
public
getIterator() : mixed
isClosed()
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(mixed $input) : mixed
Parameters
- $input : mixed