title: Are there equivalent classes or functions to DataInputStream in Java for the iPhone to read binary information
body: <p>Java provides classes DataInputStream and DataOutputStream to read/write binary data (as bytes) in a structured way like DataInputStream.readInt()/readLong()/read(byte[]) from a byte stream; likewise for the DataOutputStream.</p>
  
  <p>Are there equivalent classes or functions to the same in iPhone?</p>