I want to know if an InputStream is empty, but without using the method read(). Is there a way to know if it\'s empty without reading from it?
InputStream
read()
public void run() { byte[] buffer = new byte[256]; int bytes; while (true) { try { bytes = mmInStream.read(buffer); mHandler.obtainMessage(RECIEVE_MESSAGE, bytes, -1, buffer).sendToTarget(); } catch (IOException e) { break; } } }