See Also: NSInputStream Members
The methods required to provide a toll-free bridged NSInputStream subclass are considered private API, and may cause Apple to reject your app from the App Store.
An simple NSInputStream subclass will not work for all API that takes an NSInputStream. This is the case with Foundation.NSMutableUrlRequest for instance, which actually expects an instance of a CFReadStream object. For this to work our NSInputStream subclass needs to be toll-free bridged to CFReadStream. This is done by overriding the following methods: