getOutputStreamAPI中文翻译
public ServletOutputStream getOutputStream() throws IOException;
/**
* Returns a {@link ServletOutputStream} suitable for writing binary
返回一个Servlet输出流对象,输出流对象适合用来把二进制数据写入到响应中
* data in the response. The servlet container does not encode the
servlet容器不会对二进制数据进行编码
* binary data.
\* <p> Calling flush() on the ServletOutputStream commits the response.
基于servlet输出流对象调用flush方法就会提交响应
\* Either this method or \{@link \#getWriter\} may
这种方法或者getWriter方法都可以
\* be called to write the body, not both.
调用来写响应body 但不能两个都调用
\*
\* @return a \{@link ServletOutputStream\} for writing binary data
\* 参数解释 一个servlet输入流用来写二进制文件
\* @exception IllegalStateException if the <code>getWriter</code> method
\* has been called on this response
\*异常解释 不合法的状态异常 如果getWriter方法基于此响应被调用的话
\* @exception IOException if an input or output exception occurred
\*
\* @see \#getWriter
\*
\*/
还没有评论,来说两句吧...