code/libraries/joomlatools/library/filesystem/stream/factory.php
public function isSupported($identifier)
    {
        if(strpos($identifier, '.') !== false )
        {
            $identifier = $this->getIdentifier($identifier);
            $class      = $this->getObject('manager')->getClass($identifier);
            $name       = $class::getName();
        }
        else $name = $identifier;

        //Check if the stream is registered
        $result = $this->isRegistered($name);

        //Check if the stream is supported
        if(!ini_get('allow_url_fopen'))
        {
            if(in_array(array('ftp', 'sftp', 'http', 'https'), $name)) {
                $result = false;
            }
        }

        return $result;
    }
public function isSupported($identifier)
    {
        if(strpos($identifier, '.') !== false )
        {
            $identifier = $this->getIdentifier($identifier);
            $class      = $this->getObject('manager')->getClass($identifier);
            $name       = $class::getName();
        }
        else $name = $identifier;

        //Check if the stream is registered
        $result = $this->isRegistered($name);

        //Check if the stream is supported
        if(!ini_get('allow_url_fopen'))
        {
            if(in_array(array('ftp', 'sftp', 'http', 'https'), $name)) {
                $result = false;
            }
        }

        return $result;
    }
public function isSupported ( $ identifier ) { if ( strpos ( $ identifier , '.' ) !== false ) { $ identifier = $ this -> getIdentifier ( $ identifier ) ; $ class = $ this -> getObject ( 'manager' ) -> getClass ( $ identifier ) ; $ name = $ class :: getName ( ) ; } else $ name = $ identifier ; //Check if the stream is registered $ result = $ this -> isRegistered ( $ name ) ; //Check if the stream is supported if ( ! ini_get ( 'allow_url_fopen' ) ) { if ( in_array ( array ( 'ftp' , 'sftp' , 'http' , 'https' ) , $ name ) ) { $ result = false ; } } return $ result ; }
Check if the stream for a registered protocol is supported

@param string $identifier A stream object identifier string or stream name
@return bool TRUE if the stream is a registered and is supported, FALSE otherwise.
Check if the stream for a registered protocol is supported