This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: ZipInputStream brokenness
- From: jmr at ugcs dot caltech dot edu (Jesse Rosenstock)
- To: Per Bothner <per at bothner dot com>
- Cc: java at gcc dot gnu dot org
- Date: Mon, 02 Sep 2002 12:21:59 -0700
- Subject: Re: ZipInputStream brokenness
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.