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
private class CodeSetConversion.JavaBTCConverter extends CodeSetConversion.BTCConverter
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 Modifier and Type Field Description protected java.nio.charset.CharsetDecoder
decoder
private int
resultingNumChars
-
Constructor Summary
Constructors Constructor Description JavaBTCConverter(OSFCodeSetRegistry.Entry codeset)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description char[]
getChars(byte[] bytes, int offset, int numBytes)
char[]
getChars(java.nio.ByteBuffer byteBuffer, int offset, int numBytes)
protected java.nio.charset.CharsetDecoder
getConverter(java.lang.String javaCodeSetName)
Utility method to find a CharsetDecoder in the cache or create a new one if necessary.int
getNumChars()
-
-
-
Constructor Detail
-
JavaBTCConverter
public JavaBTCConverter(OSFCodeSetRegistry.Entry codeset)
-
-
Method Detail
-
getNumChars
public final int getNumChars()
- Specified by:
getNumChars
in classCodeSetConversion.BTCConverter
-
getChars
public char[] getChars(java.nio.ByteBuffer byteBuffer, int offset, int numBytes)
- Specified by:
getChars
in classCodeSetConversion.BTCConverter
-
getChars
public char[] getChars(byte[] bytes, int offset, int numBytes)
- Specified by:
getChars
in classCodeSetConversion.BTCConverter
-
getConverter
protected java.nio.charset.CharsetDecoder getConverter(java.lang.String javaCodeSetName)
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.
-
-