public void setContentLength ( int len ) { if ( _chunking && len >= 0 && getExpectContinues ( ) == null ) throw new IllegalStateException ( "Chunking" ) ; _realIn . setByteLimit ( len ) ; }
Set the content length . Only this number of bytes can be read before EOF is returned .