[]
Reads the next byte of data from this input stream. The value byte is returned as an int in the range 0 to 255. If no byte is available because the end of the stream has been reached, -1 is returned.
<p>This method is not synchronized, so it is not thread safe.</p>
public virtual int read()
Type | Description |
---|---|
int | The byte read in the range 0-255, or -1 if the end of stream has been reached. |