title: Reading a NSInputStream produces a -1 bytes available error
body: <p>I'm trying to do some simple encoding using <code>NSInputStream</code> and <code>NSOutputStream</code>:</p>
  
  <pre><code>import Foundation
  
  let path = "/Users/johni/desktop/a" // holds "123456789abcdef"
  var data: NSData = NSData(contentsOfFile: path)
  var inp: NSInputStream = NSInputStream(data: data)
  println(data.length) // returns 15
  println(inp.hasBytesAvailable) // returns false
  </code></pre>
  
  <p>I'm receiving a <code>-1</code> from the read method, meaning that it has no bytes available, why does this happen?</p>
  
  <p>I have also have tried initializing the <code>NSInputStream</code> directly with the <code>fileAtPath</code> initializer and got the same error.</p>