Documentation

FileWriterStreamBuilder
in package
implements FileWriterInterface, StreamBuilderStrategyInterface

FinalYes

Stream builder strategy for file writer result streams.

Tags
author

Daniel Schulz

since
2018-05-27

Table of Contents

Interfaces

FileWriterInterface
StreamBuilderStrategyInterface

Methods

__construct()  : mixed
buildChunkWriter()  : ChunkWriterInterface
Create a chunk writer for this result.
buildDOMWriter()  : DOMWriterInterface
Create a DOM writer for this result.
buildFileWriter()  : FileWriterInterface
Create a file writer for this result.
buildStreamCharset()  : string
Determine the character set of this result Returns a valid character set, or the empty string if not applicable.
buildStreamFileName()  : string
Determine the filename of this result.
buildStreamFileStatistics()  : array<string|int, mixed>
Determine all available stats of this resource, as a call to stat() would.
buildStreamHash()  : string
Determine a hash for this resource, or the empty string if undeterminable
buildStreamIsBufferable()  : bool
Determine whether or not intermediate filters are allowed to buffer this result, or should always flush immediately.
buildStreamMimeType()  : string
Determine the mime type of this result.
buildStreamWriter()  : StreamWriterInterface
Create a stream writer for this result.
buildStringWriter()  : StringWriterInterface
toFile()  : SplFileInfo

Methods

__construct()

public __construct(FileWriterInterface $writer, string $fileName) : mixed
Parameters
$writer : FileWriterInterface
$fileName : string

buildStreamCharset()

Determine the character set of this result Returns a valid character set, or the empty string if not applicable.

public buildStreamCharset(ResultInterface $context) : string
Parameters
$context : ResultInterface
Return values
string

buildStreamFileStatistics()

Determine all available stats of this resource, as a call to stat() would.

public buildStreamFileStatistics(ResultInterface $context) : array<string|int, mixed>
Parameters
$context : ResultInterface
Return values
array<string|int, mixed>

buildStreamIsBufferable()

Determine whether or not intermediate filters are allowed to buffer this result, or should always flush immediately.

public buildStreamIsBufferable(ResultInterface $context) : bool
Parameters
$context : ResultInterface
Return values
bool
On this page

Search results