Sun Java System Web Server 7.0 Update 4 NSAPI Developer's Guide

Return Values

The number of bytes read, which might be less than the requested size if an error occurs, or if the end of the file was reached before that number of characters were obtained.