ResourceStream

php\io\ResourceStream

extends: php\io\Stream

Class ResourceStream

Methods


__construct($path)
Parameters:
  • $pathstring
read($length)

throws php\io\IOException

Parameters:
  • $lengthint - - count of bytes
Returns:

mixed

readFully()

throws php\io\IOException

Returns:mixed
write($value, $length = null)

throws php\io\IOException

Parameters:
  • $valuestring
  • $lengthnull, int
Returns:

int

eof()
Returns:bool
seek($position)

throws php\io\IOException

Parameters:
  • $positionint
Returns:

mixed

getPosition()

throws php\io\IOException

Returns:int
close()
Returns:mixed
toExternalForm()
Returns:string
static getResources($name)
Parameters:
  • $namestring
Returns:

php\io\ResourceStream[]