-
Enhancement
-
Resolution: Duplicate
-
P5
-
None
-
7
-
x86
-
windows_xp
A DESCRIPTION OF THE REQUEST :
We have
InputStream getInputStream(ZipEntry entry)
in class ZipFile, but not
Channel getChannel(ZipEntry entry)
JUSTIFICATION :
All the good reasons, we have for the java.nio package as a whole, especially performance gain.
Needed to implement Class#getChannel().
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
Connect to a JNI-accessed direct ByteBuffer.
CUSTOMER SUBMITTED WORKAROUND :
Channels.getChannel(zipFile.getInputStream(ZipEntry entry));
... but this channel is very slow, because of underlying BufferedInputStream.
We have
InputStream getInputStream(ZipEntry entry)
in class ZipFile, but not
Channel getChannel(ZipEntry entry)
JUSTIFICATION :
All the good reasons, we have for the java.nio package as a whole, especially performance gain.
Needed to implement Class#getChannel().
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
Connect to a JNI-accessed direct ByteBuffer.
CUSTOMER SUBMITTED WORKAROUND :
Channels.getChannel(zipFile.getInputStream(ZipEntry entry));
... but this channel is very slow, because of underlying BufferedInputStream.
- duplicates
-
JDK-5073947 Implement Channel interface in GZIP classes
-
- Closed
-