Open Journal Systems
3.3.0
|
Public Member Functions | |
__toString () | |
close () | |
detachStream () | |
feof () | |
ftell () | |
getCustomData ($key) | |
getMetaData ($key=null) | |
getSize () | |
getStream () | |
getStreamType () | |
getUri () | |
getWrapper () | |
getWrapperData () | |
isConsumed () | |
isLocal () | |
isReadable () | |
isRepeatable () | |
isSeekable () | |
isWritable () | |
read ($length) | |
readLine ($maxLength=null) | |
rewind () | |
seek ($offset, $whence=SEEK_SET) | |
setCustomData ($key, $value) | |
setSize ($size) | |
setStream ($stream, $size=null) | |
write ($string) | |
OO interface to PHP streams
Definition at line 8 of file lib/vendor/guzzle/guzzle/src/Guzzle/Stream/StreamInterface.php.
Guzzle\Stream\StreamInterface::__toString | ( | ) |
Convert the stream to a string if the stream is readable and the stream is seekable.
Implemented in Guzzle\Stream\Stream, Guzzle\Http\CachingEntityBody, Guzzle\Http\ReadLimitEntityBody, and Guzzle\Http\AbstractEntityBodyDecorator.
Guzzle\Stream\StreamInterface::close | ( | ) |
Close the underlying stream
Implemented in Guzzle\Http\CachingEntityBody, Guzzle\Stream\Stream, and Guzzle\Http\AbstractEntityBodyDecorator.
Guzzle\Stream\StreamInterface::detachStream | ( | ) |
Detach the current stream resource
Implemented in Guzzle\Stream\Stream, and Guzzle\Http\AbstractEntityBodyDecorator.
Guzzle\Stream\StreamInterface::feof | ( | ) |
Alias of isConsumed
Implemented in Guzzle\Stream\Stream, and Guzzle\Http\AbstractEntityBodyDecorator.
Guzzle\Stream\StreamInterface::ftell | ( | ) |
Returns the current position of the file read/write pointer
Implemented in Guzzle\Stream\Stream, and Guzzle\Http\AbstractEntityBodyDecorator.
Guzzle\Stream\StreamInterface::getCustomData | ( | $key | ) |
Get custom data from the stream
string | $key | Key to retrieve |
Implemented in Guzzle\Stream\Stream, Guzzle\Http\CachingEntityBody, and Guzzle\Http\AbstractEntityBodyDecorator.
Guzzle\Stream\StreamInterface::getMetaData | ( | $key = null | ) |
Get stream metadata
string | $key | Specific metadata to retrieve |
Implemented in Guzzle\Http\CachingEntityBody, Guzzle\Stream\Stream, and Guzzle\Http\AbstractEntityBodyDecorator.
Guzzle\Stream\StreamInterface::getSize | ( | ) |
Get the size of the stream if able
Implemented in Guzzle\Stream\Stream, Guzzle\Http\AbstractEntityBodyDecorator, and Guzzle\Http\CachingEntityBody.
Referenced by Guzzle\Service\Command\LocationVisitor\Request\BodyVisitor\addExpectHeader().
Guzzle\Stream\StreamInterface::getStream | ( | ) |
Get the stream resource
Implemented in Guzzle\Http\CachingEntityBody, Guzzle\Stream\Stream, and Guzzle\Http\AbstractEntityBodyDecorator.
Guzzle\Stream\StreamInterface::getStreamType | ( | ) |
Get a label describing the underlying implementation of the stream
Implemented in Guzzle\Http\CachingEntityBody, Guzzle\Stream\Stream, and Guzzle\Http\AbstractEntityBodyDecorator.
Guzzle\Stream\StreamInterface::getUri | ( | ) |
Get the URI/filename associated with this stream
Implemented in Guzzle\Http\CachingEntityBody, Guzzle\Stream\Stream, and Guzzle\Http\AbstractEntityBodyDecorator.
Guzzle\Stream\StreamInterface::getWrapper | ( | ) |
Get the stream wrapper type
Implemented in Guzzle\Http\CachingEntityBody, Guzzle\Stream\Stream, and Guzzle\Http\AbstractEntityBodyDecorator.
Guzzle\Stream\StreamInterface::getWrapperData | ( | ) |
Wrapper specific data attached to this stream.
Implemented in Guzzle\Http\CachingEntityBody, Guzzle\Stream\Stream, and Guzzle\Http\AbstractEntityBodyDecorator.
Guzzle\Stream\StreamInterface::isConsumed | ( | ) |
Check if the stream has been consumed
Implemented in Guzzle\Stream\Stream, Guzzle\Http\CachingEntityBody, Guzzle\Http\AbstractEntityBodyDecorator, and Guzzle\Http\ReadLimitEntityBody.
Guzzle\Stream\StreamInterface::isLocal | ( | ) |
Check if the stream is a local stream vs a remote stream
Implemented in Guzzle\Stream\Stream, and Guzzle\Http\AbstractEntityBodyDecorator.
Guzzle\Stream\StreamInterface::isReadable | ( | ) |
Check if the stream is readable
Implemented in Guzzle\Stream\Stream, and Guzzle\Http\AbstractEntityBodyDecorator.
Guzzle\Stream\StreamInterface::isRepeatable | ( | ) |
Check if the stream is repeatable
Implemented in Guzzle\Stream\Stream, and Guzzle\Http\AbstractEntityBodyDecorator.
Guzzle\Stream\StreamInterface::isSeekable | ( | ) |
Check if the string is repeatable
Implemented in Guzzle\Stream\Stream, and Guzzle\Http\AbstractEntityBodyDecorator.
Guzzle\Stream\StreamInterface::isWritable | ( | ) |
Check if the stream is writable
Implemented in Guzzle\Stream\Stream, and Guzzle\Http\AbstractEntityBodyDecorator.
Guzzle\Stream\StreamInterface::read | ( | $length | ) |
Read data from the stream
int | $length | Up to length number of bytes read. |
Implemented in Guzzle\Stream\Stream, Guzzle\Http\AbstractEntityBodyDecorator, Guzzle\Http\ReadLimitEntityBody, Guzzle\Http\CachingEntityBody, and Guzzle\Http\IoEmittingEntityBody.
Guzzle\Stream\StreamInterface::readLine | ( | $maxLength = null | ) |
Read a line from the stream up to the maximum allowed buffer length
int | $maxLength | Maximum buffer length |
Implemented in Guzzle\Stream\Stream, Guzzle\Http\AbstractEntityBodyDecorator, and Guzzle\Http\CachingEntityBody.
Guzzle\Stream\StreamInterface::rewind | ( | ) |
Rewind to the beginning of the stream
Implemented in Guzzle\Stream\Stream, Guzzle\Http\CachingEntityBody, Guzzle\Http\EntityBody, and Guzzle\Http\AbstractEntityBodyDecorator.
Guzzle\Stream\StreamInterface::seek | ( | $offset, | |
$whence = SEEK_SET |
|||
) |
Seek to a position in the stream
int | $offset | Stream offset |
int | $whence | Where the offset is applied |
Implemented in Guzzle\Stream\Stream, Guzzle\Http\AbstractEntityBodyDecorator, Guzzle\Http\ReadLimitEntityBody, and Guzzle\Http\CachingEntityBody.
Guzzle\Stream\StreamInterface::setCustomData | ( | $key, | |
$value | |||
) |
Set custom data on the stream
string | $key | Key to set |
mixed | $value | Value to set |
Implemented in Guzzle\Stream\Stream, Guzzle\Http\CachingEntityBody, and Guzzle\Http\AbstractEntityBodyDecorator.
Guzzle\Stream\StreamInterface::setSize | ( | $size | ) |
Specify the size of the stream in bytes
int | $size | Size of the stream contents in bytes |
Implemented in Guzzle\Stream\Stream, and Guzzle\Http\AbstractEntityBodyDecorator.
Guzzle\Stream\StreamInterface::setStream | ( | $stream, | |
$size = null |
|||
) |
Set the stream that is wrapped by the object
resource | $stream | Stream resource to wrap |
int | $size | Size of the stream in bytes. Only pass if the size cannot be obtained from the stream. |
Implemented in Guzzle\Stream\Stream, Guzzle\Http\CachingEntityBody, and Guzzle\Http\AbstractEntityBodyDecorator.
Guzzle\Stream\StreamInterface::write | ( | $string | ) |
Write data to the stream
string | $string | The string that is to be written. |
Implemented in Guzzle\Stream\Stream, Guzzle\Http\AbstractEntityBodyDecorator, Guzzle\Http\CachingEntityBody, and Guzzle\Http\IoEmittingEntityBody.