@@ -42,21 +42,28 @@ * @brief Creates a new OFINIFile with the contents of the specified file. * * @param URL The URL to the file whose contents the OFINIFile should contain * * @return A new, autoreleased OFINIFile with the contents of the specified file + * @throw OFInvalidFormatException The format of the specified INI file is + * invalid + * @throw OFInvalidEncodingException The INI file is not in the specified + * encoding */ + (instancetype)fileWithURL: (OFURL *)URL; /** * @brief Creates a new OFINIFile with the contents of the specified file in * the specified encoding. * * @param URL The URL to the file whose contents the OFINIFile should contain * @param encoding The encoding of the specified file - * * @return A new, autoreleased OFINIFile with the contents of the specified file + * @throw OFInvalidFormatException The format of the specified INI file is + * invalid + * @throw OFInvalidEncodingException The INI file is not in the specified + * encoding */ + (instancetype)fileWithURL: (OFURL *)URL encoding: (OFStringEncoding)encoding; - (instancetype)init OF_UNAVAILABLE; @@ -65,21 +72,28 @@ * specified file. * * @param URL The URL to the file whose contents the OFINIFile should contain * * @return An initialized OFINIFile with the contents of the specified file + * @throw OFInvalidFormatException The format of the specified INI file is + * invalid + * @throw OFInvalidEncodingException The INI file is not in the specified + * encoding */ - (instancetype)initWithURL: (OFURL *)URL; /** * @brief Initializes an already allocated OFINIFile with the contents of the * specified file in the specified encoding. * * @param URL The URL to the file whose contents the OFINIFile should contain * @param encoding The encoding of the specified file - * * @return An initialized OFINIFile with the contents of the specified file + * @throw OFInvalidFormatException The format of the specified INI file is + * invalid + * @throw OFInvalidEncodingException The INI file is not in the specified + * encoding */ - (instancetype)initWithURL: (OFURL *)URL encoding: (OFStringEncoding)encoding OF_DESIGNATED_INITIALIZER;