Edit File by line
/home/barbar84/www/wp-conte.../plugins/updraftp.../vendor/guzzle/guzzle/src/Guzzle/Stream
File: StreamInterface.php
<?php
[0] Fix | Delete
[1] Fix | Delete
namespace Guzzle\Stream;
[2] Fix | Delete
[3] Fix | Delete
/**
[4] Fix | Delete
* OO interface to PHP streams
[5] Fix | Delete
*/
[6] Fix | Delete
interface StreamInterface
[7] Fix | Delete
{
[8] Fix | Delete
/**
[9] Fix | Delete
* Convert the stream to a string if the stream is readable and the stream is seekable.
[10] Fix | Delete
*
[11] Fix | Delete
* @return string
[12] Fix | Delete
*/
[13] Fix | Delete
public function __toString();
[14] Fix | Delete
[15] Fix | Delete
/**
[16] Fix | Delete
* Close the underlying stream
[17] Fix | Delete
*/
[18] Fix | Delete
public function close();
[19] Fix | Delete
[20] Fix | Delete
/**
[21] Fix | Delete
* Get stream metadata
[22] Fix | Delete
*
[23] Fix | Delete
* @param string $key Specific metadata to retrieve
[24] Fix | Delete
*
[25] Fix | Delete
* @return array|mixed|null
[26] Fix | Delete
*/
[27] Fix | Delete
public function getMetaData($key = null);
[28] Fix | Delete
[29] Fix | Delete
/**
[30] Fix | Delete
* Get the stream resource
[31] Fix | Delete
*
[32] Fix | Delete
* @return resource
[33] Fix | Delete
*/
[34] Fix | Delete
public function getStream();
[35] Fix | Delete
[36] Fix | Delete
/**
[37] Fix | Delete
* Set the stream that is wrapped by the object
[38] Fix | Delete
*
[39] Fix | Delete
* @param resource $stream Stream resource to wrap
[40] Fix | Delete
* @param int $size Size of the stream in bytes. Only pass if the size cannot be obtained from the stream.
[41] Fix | Delete
*
[42] Fix | Delete
* @return self
[43] Fix | Delete
*/
[44] Fix | Delete
public function setStream($stream, $size = null);
[45] Fix | Delete
[46] Fix | Delete
/**
[47] Fix | Delete
* Detach the current stream resource
[48] Fix | Delete
*
[49] Fix | Delete
* @return self
[50] Fix | Delete
*/
[51] Fix | Delete
public function detachStream();
[52] Fix | Delete
[53] Fix | Delete
/**
[54] Fix | Delete
* Get the stream wrapper type
[55] Fix | Delete
*
[56] Fix | Delete
* @return string
[57] Fix | Delete
*/
[58] Fix | Delete
public function getWrapper();
[59] Fix | Delete
[60] Fix | Delete
/**
[61] Fix | Delete
* Wrapper specific data attached to this stream.
[62] Fix | Delete
*
[63] Fix | Delete
* @return array
[64] Fix | Delete
*/
[65] Fix | Delete
public function getWrapperData();
[66] Fix | Delete
[67] Fix | Delete
/**
[68] Fix | Delete
* Get a label describing the underlying implementation of the stream
[69] Fix | Delete
*
[70] Fix | Delete
* @return string
[71] Fix | Delete
*/
[72] Fix | Delete
public function getStreamType();
[73] Fix | Delete
[74] Fix | Delete
/**
[75] Fix | Delete
* Get the URI/filename associated with this stream
[76] Fix | Delete
*
[77] Fix | Delete
* @return string
[78] Fix | Delete
*/
[79] Fix | Delete
public function getUri();
[80] Fix | Delete
[81] Fix | Delete
/**
[82] Fix | Delete
* Get the size of the stream if able
[83] Fix | Delete
*
[84] Fix | Delete
* @return int|bool
[85] Fix | Delete
*/
[86] Fix | Delete
public function getSize();
[87] Fix | Delete
[88] Fix | Delete
/**
[89] Fix | Delete
* Check if the stream is readable
[90] Fix | Delete
*
[91] Fix | Delete
* @return bool
[92] Fix | Delete
*/
[93] Fix | Delete
public function isReadable();
[94] Fix | Delete
[95] Fix | Delete
/**
[96] Fix | Delete
* Check if the stream is repeatable
[97] Fix | Delete
*
[98] Fix | Delete
* @return bool
[99] Fix | Delete
*/
[100] Fix | Delete
public function isRepeatable();
[101] Fix | Delete
[102] Fix | Delete
/**
[103] Fix | Delete
* Check if the stream is writable
[104] Fix | Delete
*
[105] Fix | Delete
* @return bool
[106] Fix | Delete
*/
[107] Fix | Delete
public function isWritable();
[108] Fix | Delete
[109] Fix | Delete
/**
[110] Fix | Delete
* Check if the stream has been consumed
[111] Fix | Delete
*
[112] Fix | Delete
* @return bool
[113] Fix | Delete
*/
[114] Fix | Delete
public function isConsumed();
[115] Fix | Delete
[116] Fix | Delete
/**
[117] Fix | Delete
* Alias of isConsumed
[118] Fix | Delete
*
[119] Fix | Delete
* @return bool
[120] Fix | Delete
*/
[121] Fix | Delete
public function feof();
[122] Fix | Delete
[123] Fix | Delete
/**
[124] Fix | Delete
* Check if the stream is a local stream vs a remote stream
[125] Fix | Delete
*
[126] Fix | Delete
* @return bool
[127] Fix | Delete
*/
[128] Fix | Delete
public function isLocal();
[129] Fix | Delete
[130] Fix | Delete
/**
[131] Fix | Delete
* Check if the string is repeatable
[132] Fix | Delete
*
[133] Fix | Delete
* @return bool
[134] Fix | Delete
*/
[135] Fix | Delete
public function isSeekable();
[136] Fix | Delete
[137] Fix | Delete
/**
[138] Fix | Delete
* Specify the size of the stream in bytes
[139] Fix | Delete
*
[140] Fix | Delete
* @param int $size Size of the stream contents in bytes
[141] Fix | Delete
*
[142] Fix | Delete
* @return self
[143] Fix | Delete
*/
[144] Fix | Delete
public function setSize($size);
[145] Fix | Delete
[146] Fix | Delete
/**
[147] Fix | Delete
* Seek to a position in the stream
[148] Fix | Delete
*
[149] Fix | Delete
* @param int $offset Stream offset
[150] Fix | Delete
* @param int $whence Where the offset is applied
[151] Fix | Delete
*
[152] Fix | Delete
* @return bool Returns TRUE on success or FALSE on failure
[153] Fix | Delete
* @link http://www.php.net/manual/en/function.fseek.php
[154] Fix | Delete
*/
[155] Fix | Delete
public function seek($offset, $whence = SEEK_SET);
[156] Fix | Delete
[157] Fix | Delete
/**
[158] Fix | Delete
* Read data from the stream
[159] Fix | Delete
*
[160] Fix | Delete
* @param int $length Up to length number of bytes read.
[161] Fix | Delete
*
[162] Fix | Delete
* @return string|bool Returns the data read from the stream or FALSE on failure or EOF
[163] Fix | Delete
*/
[164] Fix | Delete
public function read($length);
[165] Fix | Delete
[166] Fix | Delete
/**
[167] Fix | Delete
* Write data to the stream
[168] Fix | Delete
*
[169] Fix | Delete
* @param string $string The string that is to be written.
[170] Fix | Delete
*
[171] Fix | Delete
* @return int|bool Returns the number of bytes written to the stream on success or FALSE on failure.
[172] Fix | Delete
*/
[173] Fix | Delete
public function write($string);
[174] Fix | Delete
[175] Fix | Delete
/**
[176] Fix | Delete
* Returns the current position of the file read/write pointer
[177] Fix | Delete
*
[178] Fix | Delete
* @return int|bool Returns the position of the file pointer or false on error
[179] Fix | Delete
*/
[180] Fix | Delete
public function ftell();
[181] Fix | Delete
[182] Fix | Delete
/**
[183] Fix | Delete
* Rewind to the beginning of the stream
[184] Fix | Delete
*
[185] Fix | Delete
* @return bool Returns true on success or false on failure
[186] Fix | Delete
*/
[187] Fix | Delete
public function rewind();
[188] Fix | Delete
[189] Fix | Delete
/**
[190] Fix | Delete
* Read a line from the stream up to the maximum allowed buffer length
[191] Fix | Delete
*
[192] Fix | Delete
* @param int $maxLength Maximum buffer length
[193] Fix | Delete
*
[194] Fix | Delete
* @return string|bool
[195] Fix | Delete
*/
[196] Fix | Delete
public function readLine($maxLength = null);
[197] Fix | Delete
[198] Fix | Delete
/**
[199] Fix | Delete
* Set custom data on the stream
[200] Fix | Delete
*
[201] Fix | Delete
* @param string $key Key to set
[202] Fix | Delete
* @param mixed $value Value to set
[203] Fix | Delete
*
[204] Fix | Delete
* @return self
[205] Fix | Delete
*/
[206] Fix | Delete
public function setCustomData($key, $value);
[207] Fix | Delete
[208] Fix | Delete
/**
[209] Fix | Delete
* Get custom data from the stream
[210] Fix | Delete
*
[211] Fix | Delete
* @param string $key Key to retrieve
[212] Fix | Delete
*
[213] Fix | Delete
* @return null|mixed
[214] Fix | Delete
*/
[215] Fix | Delete
public function getCustomData($key);
[216] Fix | Delete
}
[217] Fix | Delete
[218] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function