This method of the ActiveXInputStream Class determines the number of bytes that can be read from the input stream without blocking.
public int available() throws IOException;
Returns the number of bytes that can be read from the input stream without blocking.
IOException if an I/O error occurs.