AddressInputStream does not follow API specification

Description

AddressInputStream does not follow the API specification of InputStream. Some issues include:

  1. read must return values between 0 and 255 (fixed by the attached patch from Da Feng). See also: MRP-97

  2. read should return -1 at the end of the stream instead of throwing an IOException

  3. skip is wrong when the parameter value does not fit into an int

We should write a unit tests for this class and fix all issues.

Environment

None

Assignee

Erik Brangs

Reporter

Erik Brangs

Labels

None

Components

Fix versions

Affects versions

Priority

Low
Configure