存储临时文件 Java

huangapple 未分类评论45阅读模式
英文:

Storing temporary files Java

问题

我想知道临时在您的计算机上存储文件的最佳方法是什么?

我有一个程序,可以从网站查看PDF文件。要查看这些PDF文件,您需要将它们临时保存在您的计算机上,然后打开它们。现在,我想知道在哪里是保存这些PDF文件的最佳位置(这些PDF文件应该只被临时保存,而不保留在计算机上)。

对于这种情况,是否有任何正常的流程,就像临时文件总是存储在特定的文件夹中一样,或者是否有任何以压缩方式下载PDF文件的方法?

我会很高兴听取有关这个主题的任何建议。

英文:

I was wondering what is the best way to temporarily have a file on your PC?

I have a program where you can view PDFs from a website. To view these PDFs you need to have them locally on your PC and then open them. Now I was wondering where would be the best place to save these PDFs (these PDFs should only be saved temporarily and not remain on the computer).

Is there any normal procedure for something like that, like temporary files are always stored in a certain folder, or is there any way to download the PDFs compressed?

I would be glad about any suggestion on this topic.

huangapple
  • 本文由 发表于 2020年4月6日 23:59:46
  • 转载请务必保留本文链接:https://java.coder-hub.com/61063898.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定