test ( see http://developer.android.com/reference/java/io/InputStream.html#available() )