Overview

Namespaces

  • Webmozart
    • Console
      • Adapter
      • Api
        • Application
        • Args
          • Format
        • Command
        • Config
        • Event
        • Formatter
        • IO
        • Resolver
      • Args
      • Config
      • Formatter
      • Handler
        • Help
      • IO
        • InputStream
        • OutputStream
      • Process
      • Resolver
      • UI
        • Alignment
        • Component
        • Help
        • Layout
        • Style
      • Util

Classes

  • NullInputStream
  • StandardInputStream
  • StreamInputStream
  • StringInputStream
  • Overview
  • Namespace
  • Class

Class StringInputStream

An input stream that reads from a string.

Webmozart\Console\IO\InputStream\StreamInputStream implements Webmozart\Console\Api\IO\InputStream
Extended by Webmozart\Console\IO\InputStream\StringInputStream
Namespace: Webmozart\Console\IO\InputStream
Author: Bernhard Schussek bschussek@gmail.com
Since: 1.0
Located at IO/InputStream/StringInputStream.php
Methods summary
public
# __construct( string $string = '' )

Creates the input stream.

Creates the input stream.

Parameters

$string
The string to read from.

Overrides

Webmozart\Console\IO\InputStream\StreamInputStream::__construct()
public
# clear( )

Clears the contents of the buffer.

Clears the contents of the buffer.

public
# set( string $string )

Sets the string to read from.

Sets the string to read from.

Parameters

$string
The string to read from.
public
# append( string $string )

Appends a string to the stream.

Appends a string to the stream.

Parameters

$string
The string to append.
Methods inherited from Webmozart\Console\IO\InputStream\StreamInputStream
close(), isClosed(), read(), readLine()
Webmozart Console API API documentation generated by ApiGen