org.glassfish.grizzly.http.util
public Class B2CConverterBlocking
Additional top-level classes in compilation unit: ReadConverter, IntermediateInputStream.
extends Object
- Class Inheritance
-
- Imports
- java.io.IOException, .InputStream, .InputStreamReader, .UnsupportedEncodingException, java.nio.charset.Charset, java.util.logging.Level, .Logger, org.glassfish.grizzly.Grizzly, org.glassfish.grizzly.utils.Charsets
Efficient conversion of bytes to character .
This uses the standard JDK mechanism - a reader - but provides mechanisms to recycle all the objects that are used.
It is compatible with JDK1.1 and up, ( nio is better, but it's not available even in 1.2 or 1.3 )
Not used in the current code, the performance gain is not very big in the current case ( since String is created
anyway ), but it will be used in a later version or after the remaining optimizations.
Constructor Summary
| Access | Constructor and Description
|
|---|
| protected |
|
| public |
|
Method Detail
| recycle | back to summary
|
|---|
| public void recycle() Reset the internal state, empty the buffers. The encoding remain in effect, the internal buffers remain allocated.
|