Sun Java System Web Server 6.1 SP6 NSAPI Programmer's Guide

Returns

The number of bytes actually read (between 1 and sz) if the operation was successful, or the constant IO_EOF or IO_ERROR for end of file or error.