YANA 4 PHP Framework
Docs For Class SecureInputStream
checked reading of file sources
This class adds functionality to compute the checksum of a resource and failsafe reading of resources.
Located in /includes/class_secureinputstream.php
Object | --InputStream | --SecureInputStream
Class | Description |
---|---|
SecureFileStream | checked reading and writing of file sources |
VDrive | virtual Drive |
Automatically restarts reading if the file-resource is temporarily not available after waiting for 0.5 seconds.
The process is aborted if it fails 3 times.
Redefinition of: InputStream::get()
Name | Type | Description |
---|---|---|
$filename | string |
The filename parameter became available in version 2.8.5
This function has two synopsis. You may decide either to call it statically or based on a current instance.
Note: This function has been renamed in version 2.9 RC3 from "SecureInputStream::checksum", to better comply with the framework's naming convention
If you prefer a hash value over a checksum, you may want to have a look at SecureInputStream::getMd5() instead.
Name | Type | Description |
---|---|---|
$filename |
This function calculates and returns the MD5 hash-string for a file.
Usefull to check whether or not a file has been changed since last access.
This function has two synopsis. You may decide either to call it statically or based on a current instance.
Note: results are cached for the current file.
Note: This function has been renamed in version 2.9 RC3 from "SecureInputStream::md5Checksum", as the MD5 algorithm does not really return a checksum, but a hash value.
If you prefer a checksum over a hash value, you may want to have a look at SecureInputStream::getCrc32() instead.
Returns bool(true) on success and bool(false) on error.
You accidently did something wrong with the file? Calling this will reload the file from disk while reseting its current state.
Redefinition of: Object::toString()
Inherited From InputStream
Inherited From Object
Documentation generated on Sun, 11 Mar 2007 15:02:43 +0100 by phpDocumentor 1.3.1