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

  • BufferedIO
  • ConsoleIO
  • Overview
  • Namespace
  • Class

Class BufferedIO

An I/O that reads from and writes to a buffer.

Webmozart\Console\Api\IO\IO implements Webmozart\Console\Api\Formatter\Formatter
Extended by Webmozart\Console\IO\BufferedIO
Namespace: Webmozart\Console\IO
Author: Bernhard Schussek bschussek@gmail.com
Since: 1.0
Located at IO/BufferedIO.php
Methods summary
public
# __construct( string $inputData = '', Webmozart\Console\Api\Formatter\Formatter $formatter = null )

Creates the I/O.

Creates the I/O.

Parameters

$inputData
The data to return from the input.
$formatter
The formatter to use.

Overrides

Webmozart\Console\Api\IO\IO::__construct()
public
# setInput( string $data )

Sets the contents of the input buffer.

Sets the contents of the input buffer.

Parameters

$data
The input data.
public
# appendInput( string $data )

Appends data to the input buffer.

Appends data to the input buffer.

Parameters

$data
The input data to append.
public
# clearInput( )

Clears the input buffer.

Clears the input buffer.

public string
# fetchOutput( )

Returns the contents of the output buffer.

Returns the contents of the output buffer.

Returns

string
The output data.
public
# clearOutput( )

Clears the output buffer.

Clears the output buffer.

public string
# fetchErrors( )

Returns the contents of the error output buffer.

Returns the contents of the error output buffer.

Returns

string
The data of the error output.
public
# clearErrors( )

Clears the error output buffer.

Clears the error output buffer.

Methods inherited from Webmozart\Console\Api\IO\IO
close(), error(), errorLine(), errorLineRaw(), errorRaw(), flush(), format(), getDefaultTerminalDimensions(), getErrorOutput(), getFormatter(), getInput(), getOutput(), getTerminalDimensions(), getVerbosity(), isDebug(), isInteractive(), isQuiet(), isVerbose(), isVeryVerbose(), read(), readLine(), removeFormat(), setFormatter(), setInteractive(), setQuiet(), setTerminalDimensions(), setVerbosity(), write(), writeLine(), writeLineRaw(), writeRaw()
Constants inherited from Webmozart\Console\Api\IO\IO
DEBUG, NORMAL, VERBOSE, VERY_VERBOSE
Webmozart Console API API documentation generated by ApiGen