This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]