@@ -15,10 +15,11 @@ */ #import "OFObject.h" @class OFString; +@class OFURL; /** * \brief A class for storing arbitrary data in an array. * * If you plan to store large hunks of data, you should consider using @@ -51,10 +52,19 @@ * \param path The path of the file * \return A new autoreleased OFDataArray */ + dataArrayWithContentsOfFile: (OFString*)path; +/** + * Creates a new OFDataArray with an item size of 1, containing the data of the + * specified URL. + * + * \param URL The URL to the contents for the OFDataArray + * \return A new autoreleased OFDataArray + */ ++ dataArrayWithContentsOfURL: (OFURL*)URL; + /** * Creates a new OFDataArray with an item size of 1, containing the data of the * Base64-encoded string. * * \param string The string with the Base64-encoded data @@ -78,10 +88,19 @@ * \param path The path of the file * \return An initialized OFDataArray */ - initWithContentsOfFile: (OFString*)path; +/** + * Initializes an already allocated OFDataArray with an item size of 1, + * containing the data of the specified URL. + * + * \param URL The URL to the contents for the OFDataArray + * \return A new autoreleased OFDataArray + */ +- initWithContentsOfURL: (OFURL*)URL; + /** * Initializes an already allocated OFDataArray with an item size of 1, * containing the data of the Base64-encoded string. * * \param string The string with the Base64-encoded data