@@ -55,10 +55,11 @@ /** * @brief Returns the handler for the specified URI. * * @return The handler for the specified URI. + * @throw OFUnsupportedProtocolException The specified URI is not supported */ + (OFURIHandler *)handlerForURI: (OFURI *)URI; /** * @brief Opens the item at the specified URI. @@ -80,10 +81,11 @@ * @n * The handler is allowed to not implement all modes and is also * allowed to implement additional, scheme-specific modes. * @return The opened stream if it was successfully opened * @throw OFOpenItemFailedException Opening the item failed + * @throw OFUnsupportedProtocolException The specified URI is not supported */ + (OFStream *)openItemAtURI: (OFURI *)URI mode: (OFString *)mode; - (instancetype)init OF_UNAVAILABLE; @@ -115,10 +117,12 @@ * @n * The handler is allowed to not implement all modes and is also * allowed to implement additional, scheme-specific modes. * @return The opened stream if it was successfully opened * @throw OFOpenItemFailedException Opening the item failed + * @throw OFUnsupportedProtocolException The specified URI is not supported by + * the handler */ - (OFStream *)openItemAtURI: (OFURI *)URI mode: (OFString *)mode; /** * @brief Returns the attributes for the item at the specified URI.