This method of the StringInputStream class reads the next byte of data from this input stream.
public int read() throws IOException;
Returns the next byte of data, or -1 if the end of the stream is reached.
Throws IOException if an I/O error occurs.