protected CodeSetConversion.CTBConverter createWCharCTBConverter() { if (getGIOPVersion().equals(GIOPVersion.V1_0)) throw wrapper.wcharDataInGiop10(CompletionStatus.COMPLETED_MAYBE); // In the case of GIOP 1.1, we take the byte order of the stream and don't // use byte order markers since we're limited to a 2 byte fixed width encoding. if (getGIOPVersion().equals(GIOPVersion.V1_1)) return CodeSetConversion.impl().getCTBConverter(OSFCodeSetRegistry.UTF_16, isLittleEndian(), false); // Assume anything else meets GIOP 1.2 requirements // // Use byte order markers? If not, use big endian in GIOP 1.2. // (formal 00-11-03 15.3.16) boolean useBOM = ((ORB) orb()).getORBData().useByteOrderMarkersInEncapsulations(); return CodeSetConversion.impl().getCTBConverter(OSFCodeSetRegistry.UTF_16, false, useBOM); } }
protected CodeSetConversion.CTBConverter createWCharCTBConverter() { if (getGIOPVersion().equals(GIOPVersion.V1_0)) throw wrapper.wcharDataInGiop10(CompletionStatus.COMPLETED_MAYBE); // In the case of GIOP 1.1, we take the byte order of the stream and don't // use byte order markers since we're limited to a 2 byte fixed width encoding. if (getGIOPVersion().equals(GIOPVersion.V1_1)) return CodeSetConversion.impl().getCTBConverter(OSFCodeSetRegistry.UTF_16, isLittleEndian(), false); // Assume anything else meets GIOP 1.2 requirements // // Use byte order markers? If not, use big endian in GIOP 1.2. // (formal 00-11-03 15.3.16) boolean useBOM = ((ORB) orb()).getORBData().useByteOrderMarkersInEncapsulations(); return CodeSetConversion.impl().getCTBConverter(OSFCodeSetRegistry.UTF_16, false, useBOM); } }