Package com.sun.grizzly.util.buf

Interface Summary
ByteChunk.ByteInputChannel  
ByteChunk.ByteOutputChannel  
CharChunk.CharInputChannel  
CharChunk.CharOutputChannel When we need more space we'll either grow the buffer ( up to the limit ) or send it to a channel.
 

Class Summary
Ascii This class implements some basic ASCII character handling functions.
B2CConverter Efficient conversion of bytes to character .
B2CConverterBlocking Efficient conversion of bytes to character .
Base64 This class provides encode/decode for RFC 2045 Base64 as defined by RFC 2045, N.
Base64Utils A very fast and memory efficient class to encode and decode to and from BASE64 in full accordance with RFC 2045.

On Windows XP sp1 with 1.4.2_04 and later ;), this encoder and decoder is about 10 times faster on small arrays (10 - 1000 bytes) and 2-3 times as fast on larger arrays (10000 - 1000000 bytes) compared to sun.misc.Encoder()/Decoder().

On byte arrays the encoder is about 20% faster than Jakarta Commons Base64 Codec for encode and about 50% faster for decoding large arrays.
ByteChunk This class is used to represent a chunk of bytes, and utilities to manipulate byte[].
C2BConverter Efficient conversion of character to bytes.
CharChunk Utilities to manipluate char chunks.
HexUtils Library of utility methods useful in dealing with converting byte arrays to and from strings of hexadecimal digits.
MessageBytes This class is used to represent a subarray of bytes in an HTTP message.
MessageBytes.MessageBytesFactory  
StringCache This class implements a String cache for ByteChunk and CharChunk.
StringCache.ByteEntry  
StringCache.CharEntry  
TimeStamp Main tool for object expiry.
UDecoder All URL decoding happens here.
UEncoder Efficient implementation for encoders.
UTF8Decoder Moved from ByteChunk - code to convert from UTF8 bytes to chars.
 



Copyright © 2012 Oracle Corporation. All Rights Reserved.