简体   繁体   English

Java中的早期冲洗

[英]early flushing in java

In java, how can I flush content early to the browser? 在Java中,如何将内容提早刷新到浏览器? I think GZipOutputStream is buffering the content. 我认为GZipOutputStream正在缓冲内容。

Are there any alternatives to GZIPOutputStream to gzip . GZIPOutputStream是否可以替代gzip That alternative should be able to flush content early to the browser. 这种选择应该能够将内容提早清除到浏览器中。

To flush content to a stream you can use flush(). 要将内容刷新到流中,可以使用flush()。 Streams that don't do any buffering don't need to be flush()ed. 不做任何缓冲的流不需要被flush()处理。

Do you know that your browser will do anything with files which have not been sent in full? 您是否知道您的浏览器会对未完整发送的文件执行任何操作?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM