ZipInputStream brokenness

Jesse Rosenstock jmr@ugcs.caltech.edu
Mon Sep 2 12:22:00 GMT 2002


Per> Adam Megacz wrote:
Per> > If you want buffering, you should wrap a BufferedInputStream around
Per> > it. Buffering can be added, but not removed, which is why it is not
Per> > automatic.
Per>
Per> I interpreted Jeff's message that Sun's code *does* do the byffering,
Per> in which we should probably also do it.
Per>
Per> Besides, I don't see any reason that you'd ever want to *not* buffer,
Per> at least when using a FileInputStream,.
I thought Jeff was talking about ZipFile's use of a RandomAccessFile, 
and that the solution would be to use mmap either by writing native
code for ZipFile, or implementing java.nio and having ZipFile use that.


More information about the Java mailing list

AltStyle によって変換されたページ (->オリジナル) /