APIdia Launch Partner
Top Description Inners Fields Constructors Methods
jdk.nio.zipfs

pack-priv Class ZipCoder

extends Object
Class Inheritance
Known Direct Subclasses
jdk.nio.zipfs.ZipCoder.UTF8
Imports
java.nio.ByteBuffer, .CharBuffer, java.nio.charset.Charset, .CharsetDecoder, .CharsetEncoder, .CoderResult, .CodingErrorAction, java.util.Arrays

Utility class for ZIP file entry name and comment decoding and encoding
Author
Xueming Shen

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv static class

Field Summary

Modifier and TypeField and Description
private Charset
private final ThreadLocal<CharsetDecoder>
private final ThreadLocal<CharsetEncoder>
private static final ZipCoder

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
private CharsetDecoder
private CharsetEncoder
public static ZipCoder
get(String csn)

pack-priv byte[]
pack-priv boolean
pack-priv String
toString(byte[] ba)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

csback to summary
private Charset cs
decTLback to summary
private final ThreadLocal<CharsetDecoder> decTL
encTLback to summary
private final ThreadLocal<CharsetEncoder> encTL
utf8back to summary
private static final ZipCoder utf8

Constructor Detail

ZipCoderback to summary
private ZipCoder(Charset cs)

Method Detail

decoderback to summary
private CharsetDecoder decoder()
encoderback to summary
private CharsetEncoder encoder()
getback to summary
public static ZipCoder get(String csn)
getBytesback to summary
pack-priv byte[] getBytes(String s)
isUTF8back to summary
pack-priv boolean isUTF8()
toStringback to summary
pack-priv String toString(byte[] ba)
jdk.nio.zipfs back to summary

pack-priv Class ZipCoder.UTF8

extends ZipCoder
Class Inheritance

Constructor Summary

AccessConstructor and Description
pack-priv
UTF8()

Method Summary

Modifier and TypeMethod and Description
pack-priv byte[]
pack-priv String
Inherited from jdk.nio.zipfs.ZipCoder:
getisUTF8

Constructor Detail

UTF8back to summary
pack-priv UTF8()

Method Detail

getBytesback to summary
pack-priv byte[] getBytes(String s)

Overrides jdk.nio.zipfs.ZipCoder.getBytes.

Annotations
@Override
toStringback to summary
pack-priv String toString(byte[] ba)

Overrides jdk.nio.zipfs.ZipCoder.toString.

Annotations
@Override