public long available() throws IOException {
  if (inputStream == null) {
    throw new IOException("Stream closed");
  }
  return inputStream.available();
}

public long available ( ) throws IOException { if ( inputStream == null ) { throw new IOException ( "Stream closed" ) ; } return inputStream . available ( ) ; }
return how many bytes the input stream thinks are available .
