You are reading a single byte from the stream, so there is nothing to buffer really. Use one of the read()
methods that take a byte array, that will be your buffer. You can also wrap with BufferedInputStream
, etc. You might want to read up on how stream work in Java in general, this is not Android specific.
See http://developer.android.com/reference/java/io/InputStream.html#read(byte[])