setasign\SetaPDF2\Core\Writer

StringWriter A writer class for string results

File: /SetaPDF v2/Core/Writer/StringWriter.php
Old class name (alias): \SetaPDF_Core_Writer_String

Class hierarchy

Implements

Summary

Properties

$_buffer

protected string StringWriter::$_buffer = ''

The string buffer

$_pos

protected int EchoWriter::$_pos = 0

The current position

$_status

protected string AbstractWriter::$_status = 0

Status property


Methods

__toString()

public StringWriter::__toString (
void
): string

__toString()-implementation.

cleanUp()

public AbstractWriter::cleanUp (
void
): void

Method which should/will be called when the document objects cleanUp() method is called.

finish()

public AbstractWriter::finish (
void
): void

Method which should/will be called when the writing process is finished.

getBuffer()

public StringWriter::getBuffer (
void
): string

Get the string buffer.

getPos()

public EchoWriter::getPos (
void
): int

Returns the current position.

getStatus()

public AbstractWriter::getStatus (
void
): string

Get the current status of the writer object.

start()

public StringWriter::start (
void
): void

Initiate the buffer property.

write()

public StringWriter::write (
string $s
): void

Add content to the buffer.

Parameters
$s : string