@@ -77,18 +77,20 @@ * @return A new autoreleased OFDataArray */ + (instancetype)dataArrayWithItemSize: (size_t)itemSize capacity: (size_t)capacity; +#ifdef OF_HAVE_FILES /*! * @brief Creates a new OFDataArary with an item size of 1, containing the data * of the specified file. * * @param path The path of the file * @return A new autoreleased OFDataArray */ + (instancetype)dataArrayWithContentsOfFile: (OFString*)path; +#endif /*! * @brief Creates a new OFDataArray with an item size of 1, containing the data * of the specified URL. * @@ -143,18 +145,20 @@ * @return An initialized OFDataArray */ - initWithItemSize: (size_t)itemSize capacity: (size_t)capacity; +#ifdef OF_HAVE_FILES /*! * @brief Initializes an already allocated OFDataArray with an item size of 1, * containing the data of the specified file. * * @param path The path of the file * @return An initialized OFDataArray */ - initWithContentsOfFile: (OFString*)path; +#endif /*! * @brief Initializes an already allocated OFDataArray with an item size of 1, * containing the data of the specified URL. * @@ -304,16 +308,18 @@ * * @return A string containing the data in Base64 encoding */ - (OFString*)stringByBase64Encoding; +#ifdef OF_HAVE_FILES /*! * @brief Writes the OFDataArray into the specified file. * * @param path The path of the file to write to */ - (void)writeToFile: (OFString*)path; +#endif @end /*! * @brief A class for storing arbitrary big data in an array. *