Should we regard it as a bug that the "read" method of class
StringBufferInputStream sometimes returns int values that
are not in the range -1 through 255? Because it pulls characters
from a string and simply returns them, it might return values
in the range 256 through 65535 as well. But code in other classes,
such as method readUnsignedShort of class DataInputStream, seem to
assume that the "read" method guarantees to return a result that
is never larger than 255.
StringBufferInputStream sometimes returns int values that
are not in the range -1 through 255? Because it pulls characters
from a string and simply returns them, it might return values
in the range 256 through 65535 as well. But code in other classes,
such as method readUnsignedShort of class DataInputStream, seem to
assume that the "read" method guarantees to return a result that
is never larger than 255.