getOutputStreamAPI中文翻译

清疚 2022-05-17 21:08 329阅读 0赞

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.

  1. \* <p> Calling flush() on the ServletOutputStream commits the response.
  2. 基于servlet输出流对象调用flush方法就会提交响应
  3. \* Either this method or \{@link \#getWriter\} may
  4. 这种方法或者getWriter方法都可以
  5. \* be called to write the body, not both.
  6. 调用来写响应body 但不能两个都调用
  7. \*
  8. \* @return a \{@link ServletOutputStream\} for writing binary data
  9. \* 参数解释 一个servlet输入流用来写二进制文件
  10. \* @exception IllegalStateException if the <code>getWriter</code> method
  11. \* has been called on this response
  12. \*异常解释 不合法的状态异常 如果getWriter方法基于此响应被调用的话
  13. \* @exception IOException if an input or output exception occurred
  14. \*
  15. \* @see \#getWriter
  16. \*
  17. \*/

发表评论

表情:
评论列表 (有 0 条评论,329人围观)

还没有评论,来说两句吧...

相关阅读