@@ -90,18 +90,20 @@ * @return A new autoreleased OFDataArray */ + (instancetype)dataArrayWithContentsOfFile: (OFString*)path; #endif +#if defined(OF_HAVE_FILES) || defined(OF_HAVE_SOCKETS) /*! * @brief 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 */ + (instancetype)dataArrayWithContentsOfURL: (OFURL*)URL; +#endif /*! * @brief Creates a new OFDataArray with an item size of 1, containing the data * of the string representation. * @@ -158,18 +160,20 @@ * @return An initialized OFDataArray */ - initWithContentsOfFile: (OFString*)path; #endif +#if defined(OF_HAVE_FILES) || defined(OF_HAVE_SOCKETS) /*! * @brief 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; +#endif /*! * @brief Initializes an already allocated OFDataArray with an item size of 1, * containing the data of the string representation. *