Rename loal variable prior to some refactoring.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1518135 13f79535-47bb-0310-9956-ffa450edef68
Refactoring. Make the log instance available to the super class. Use imports rather than fully-qualified names.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1518143 13f79535-47bb-0310-9956-ffa450edef68
Refactoring.
Pull up code from NIO that also does a non-blocking read in the available() call. This makes NIO and APR consistent. BIO is unaffected as it overrides available() and always returns 1.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1518144 13f79535-47bb-0310-9956-ffa450edef68
Remove unnecessary code. inputBuffer.avaiable() now includes a call to nbRead() to check for available data if the buffer is empty.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1518147 13f79535-47bb-0310-9956-ffa450edef68
Fix some broken exception messages.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1518153 13f79535-47bb-0310-9956-ffa450edef68
Handle non-standard OSX behaviour on non-blocking reads that return no data in fill() as well as nbRead()

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1518154 13f79535-47bb-0310-9956-ffa450edef68
Simplify nested if statements

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1518155 13f79535-47bb-0310-9956-ffa450edef68
Handle EAGAIN return code (expected for non-blocking reads when no data is available)

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1518156 13f79535-47bb-0310-9956-ffa450edef68