Implement InputStream->read validate callback