SkillAgentSearch skills...

AQStreamDownloader

A simple class to download a stream to disk or to a memory block

Install / Use

/learn @AlanQuatermain/AQStreamDownloader
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

h1=. AQStreamDownloader

p=. Version 1.0 -- 26 April 2010

p=. By "Jim Dovey":mailto:jimdovey@mac.com

h2. Introduction

This is a simple class which will download anything arriving from a given NSInputStream (or CFReadStream, CFHTTPReadStreamRef, CFFTPStreamRef, etc.) to a file or to a block of memory. You can specify an output file path, or you can let the class choose one for you.

h3. Dependencies

The temp-file support in this class makes use of an NSFileManager class I wrote a while back, available as part of "AQToolkit":http://github.com/AlanQuatermain/AQToolkit. Look in the TempFiles folder for the relevant class, or replace with a simple NSTemporaryDirectory() wrapper of your own.

View on GitHub
GitHub Stars16
CategoryDevelopment
Updated6y ago
Forks2

Languages

Objective-C

Security Score

75/100

Audited on Dec 14, 2019

No findings