private StringReader processInLive(Reader reader) throws IOException {

		String requestURL = ThreadLocalJawrContext.getRequestURL();
		StringWriter swriter = new StringWriter();
		IOUtils.copy(reader, swriter, true);
		String updatedContent = swriter.getBuffer().toString();
		if (requestURL != null) {

			updatedContent = updatedContent.replaceAll(JawrConstant.JAWR_BUNDLE_PATH_PLACEHOLDER_PATTERN, requestURL);
		}
		return new StringReader(updatedContent);
	}
private StringReader processInLive ( Reader reader ) throws IOException { String requestURL = ThreadLocalJawrContext . getRequestURL ( ) ; StringWriter swriter = new StringWriter ( ) ; IOUtils . copy ( reader , swriter , true ) ; String updatedContent = swriter . getBuffer ( ) . toString ( ) ; if ( requestURL != null ) { updatedContent = updatedContent . replaceAll ( JawrConstant . JAWR_BUNDLE_PATH_PLACEHOLDER_PATTERN , requestURL ) ; } return new StringReader ( updatedContent ) ; }
Process the bundle content in live

@param reader
the reader
@return the processed bundle content
@throws IOException
if an IOException occured