public void skipHttpHeader ( ) throws IOException { if ( this . httpHeaderStream != null ) { // Empty the httpHeaderStream for ( int available = this . httpHeaderStream . available ( ) ; this . httpHeaderStream != null && ( available = this . httpHeaderStream . available ( ) ) > 0 ; ) { // We should be in this loop once only we should only do this // buffer allocation once. byte [ ] buffer = new byte [ available ] ; // The read nulls out httpHeaderStream when done with it so // need check for null in the loop control line. read ( buffer , 0 , available ) ; } } }
Skip over the the http header if one present .