/** * Returns the body of the request as a <code>BufferedReader</code> * that translates character set encodings. * @since [ 1221537 ] Patch: ServletUnitHttpRequest.getReader not implemented yet * @author Tim - timmorrow (SourceForge) * @return the reader **/ public BufferedReader getReader() throws IOException { if (_gotInputStream) { throw new IllegalStateException("getInputStream() has already been called on this request"); } if (_reader == null) { initializeInputStream(); String encoding = getCharacterEncoding(); if (encoding == null) { encoding = HttpUnitUtils.DEFAULT_CHARACTER_SET; } _reader = new BufferedReader(new InputStreamReader(_inputStream, encoding)); _gotReader = true; } return _reader; }
/** * Returns the body of the request as a <code>BufferedReader</code> * that translates character set encodings. * @since [ 1221537 ] Patch: ServletUnitHttpRequest.getReader not implemented yet * @author Tim - timmorrow (SourceForge) * @return the reader **/ public BufferedReader getReader() throws IOException { if (_gotInputStream) { throw new IllegalStateException("getInputStream() has already been called on this request"); } if (_reader == null) { initializeInputStream(); String encoding = getCharacterEncoding(); if (encoding == null) { encoding = HttpUnitUtils.DEFAULT_CHARACTER_SET; } _reader = new BufferedReader(new InputStreamReader(_inputStream, encoding)); _gotReader = true; } return _reader; }
/** * Returns the body of the request as a <code>BufferedReader</code> * that translates character set encodings. * @since [ 1221537 ] Patch: ServletUnitHttpRequest.getReader not implemented yet * @author Tim - timmorrow (SourceForge) * @return the reader **/ public BufferedReader getReader() throws IOException { if (_gotInputStream) { throw new IllegalStateException("getInputStream() has already been called on this request"); } if (_reader == null) { initializeInputStream(); String encoding = getCharacterEncoding(); if (encoding == null) { encoding = HttpUnitUtils.DEFAULT_CHARACTER_SET; } _reader = new BufferedReader(new InputStreamReader(_inputStream, encoding)); _gotReader = true; } return _reader; }