| 730 | #endif |
| 731 | |
| 732 | std::unique_ptr<OutputStream> URL::createOutputStream() const |
| 733 | { |
| 734 | if (isLocalFile()) |
| 735 | { |
| 736 | #if JUCE_IOS |
| 737 | // We may need to refresh the embedded bookmark. |
| 738 | return std::make_unique<iOSFileStreamWrapper<FileOutputStream>> (const_cast<URL&> (*this)); |
| 739 | #else |
| 740 | return std::make_unique<FileOutputStream> (getLocalFile()); |
| 741 | #endif |
| 742 | } |
| 743 | |
| 744 | #if JUCE_ANDROID |
| 745 | return std::unique_ptr<OutputStream> (juce_CreateContentURIOutputStream (*this)); |
| 746 | #else |
| 747 | return nullptr; |
| 748 | #endif |
| 749 | } |
| 750 | |
| 751 | //============================================================================== |
| 752 | bool URL::readEntireBinaryStream (MemoryBlock& destData, bool usePostCommand) const |
no test coverage detected