Package com.sun.corba.ee.impl.encoding
Class CodeSetConversion.JavaBTCConverter
java.lang.Object
com.sun.corba.ee.impl.encoding.CodeSetConversion.BTCConverter
com.sun.corba.ee.impl.encoding.CodeSetConversion.JavaBTCConverter
- Direct Known Subclasses:
CodeSetConversion.UTF16BTCConverter
- Enclosing class:
CodeSetConversion
Implementation of BTCConverter which uses a sun.io.ByteToCharConverter
for the real work. Handles translation of exceptions to the
appropriate CORBA versions.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionchar[]
getChars
(byte[] bytes, int offset, int numBytes) char[]
getChars
(ByteBuffer byteBuffer, int offset, int numBytes) protected CharsetDecoder
getConverter
(String javaCodeSetName) Utility method to find a CharsetDecoder in the cache or create a new one if necessary.final int
-
Field Details
-
decoder
-
resultingNumChars
private int resultingNumChars
-
-
Constructor Details
-
JavaBTCConverter
-
-
Method Details
-
getNumChars
public final int getNumChars()- Specified by:
getNumChars
in classCodeSetConversion.BTCConverter
-
getChars
- Specified by:
getChars
in classCodeSetConversion.BTCConverter
-
getChars
public char[] getChars(byte[] bytes, int offset, int numBytes) - Specified by:
getChars
in classCodeSetConversion.BTCConverter
-
getConverter
Utility method to find a CharsetDecoder in the cache or create a new one if necessary. Throws an INTERNAL if the code set is unknown.
-