LazyBodyPartStream
class LazyBodyPartStream implements StreamInterface (View source)
Properties
| protected int | $position | The current position in the stream. |
|
| protected string|null | $content | The cached content. |
Methods
string
__toString()
{@inheritDoc}
void
close()
{@inheritDoc}
detach()
{@inheritDoc}
int|null
getSize()
{@inheritDoc}
int
tell()
{@inheritDoc}
bool
eof()
{@inheritDoc}
bool
isSeekable()
{@inheritDoc}
void
seek(int $offset, int $whence = SEEK_SET)
{@inheritDoc}
void
rewind()
{@inheritDoc}
bool
isWritable()
{@inheritDoc}
bool
isReadable()
{@inheritDoc}
string
read(int $length)
{@inheritDoc}
string
getContents()
{@inheritDoc}
array|null
getMetadata(string|null $key = null)
{@inheritDoc}
int
write(string $string)
{@inheritDoc}
string
getOrFetchContent()
Fetch the content from the server if not already cached.
Details
__construct(Message $message, BodyStructurePart $part)
Constructor.
string
__toString()
{@inheritDoc}
void
close()
{@inheritDoc}
detach()
{@inheritDoc}
int|null
getSize()
{@inheritDoc}
int
tell()
{@inheritDoc}
bool
eof()
{@inheritDoc}
bool
isSeekable()
{@inheritDoc}
void
seek(int $offset, int $whence = SEEK_SET)
{@inheritDoc}
void
rewind()
{@inheritDoc}
bool
isWritable()
{@inheritDoc}
bool
isReadable()
{@inheritDoc}
string
read(int $length)
{@inheritDoc}
string
getContents()
{@inheritDoc}
array|null
getMetadata(string|null $key = null)
{@inheritDoc}
int
write(string $string)
{@inheritDoc}
protected string
getOrFetchContent()
Fetch the content from the server if not already cached.