chen870647924 / guava-libraries

Automatically exported from code.google.com/p/guava-libraries
Apache License 2.0
0 stars 0 forks source link

FileBackedOutputStream: Add possibility to customize name of temporary file #906

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hi,

It's needed in some cases to set name of temporary file directly. But when we 
use FileBackedOutputStream methods we can't control name of temporary file 
which will be created (see FileBackedOutputStream.update() method).

Is it possible to add file name param as argument of  FileBackedOutputStream's 
constructors or in other way?

Original issue reported on code.google.com by anasta.u...@gmail.com on 22 Feb 2012 at 1:16

GoogleCodeExporter commented 9 years ago
Could you give more details about your use case?  I understood 
FileBackedOutputStream to be deliberately separating those concerns from its 
users.

Original comment by wasserman.louis on 22 Feb 2012 at 3:59

GoogleCodeExporter commented 9 years ago

Original comment by wasserman.louis on 1 Mar 2012 at 7:53

GoogleCodeExporter commented 9 years ago
We use FileBackedOutputStream for serialization objects and copying input 
streams. It's may be usefull for analyse errors - to know operation which 
create concrete file. It may be done if operation would can name created 
temporary files (for example, "copyInputStream673676346234286.tmp"', 
"serialize5236546765.tmp"). Of course such improvement hasn't high priority.

Original comment by anasta.u...@gmail.com on 2 Mar 2012 at 7:04

GoogleCodeExporter commented 9 years ago

Original comment by fry@google.com on 13 Mar 2012 at 6:42

GoogleCodeExporter commented 9 years ago

Original comment by kevinb@google.com on 22 Jun 2012 at 6:16

GoogleCodeExporter commented 9 years ago
This issue has been migrated to GitHub.

It can be found at https://github.com/google/guava/issues/<id>

Original comment by cgdecker@google.com on 1 Nov 2014 at 4:14

GoogleCodeExporter commented 9 years ago

Original comment by cgdecker@google.com on 1 Nov 2014 at 4:18

GoogleCodeExporter commented 9 years ago

Original comment by cgdecker@google.com on 3 Nov 2014 at 9:08