Examples of CodeSetComponentInfo


Examples of org.omg.CONV_FRAME.CodeSetComponentInfo

    /**
     * Verify that the local code set components offer the appropriate code sets.
     */
    public void testLocalCodeSets() throws Exception
    {
        CodeSetComponentInfo info = CodeSet.getLocalCodeSetComponentInfo();
        assertNotNull( "iso 8859-1 not supported for char", CodeSet.getCodeSetIfMatched( ISO8859_1_ID, info.ForCharData ) );
        assertNotNull( "utf-8 not supported for char", CodeSet.getCodeSetIfMatched( UTF8_ID, info.ForCharData ) );
        assertNotNull( "utf-8 not supported for wchar", CodeSet.getCodeSetIfMatched( UTF8_ID, info.ForWcharData ) );
        assertNotNull( "utf-16 not supported for wchar", CodeSet.getCodeSetIfMatched( UTF16_ID, info.ForWcharData ) );
        assertNotNull( "ucs-2 not supported for wchar", CodeSet.getCodeSetIfMatched( UCS2, info.ForWcharData ) );
View Full Code Here

Examples of org.omg.CONV_FRAME.CodeSetComponentInfo

        final CodeSetComponent forWCharData = new CodeSetComponent( wcharCodeSet, conversionWCharSets );
        return new ParsedIOR( (ORB) orb, new IOR( "", new TaggedProfile[0] ) )
        {
            public CodeSetComponentInfo getCodeSetComponentInfo()
            {
                return new CodeSetComponentInfo( forCharData, forWCharData );
            }
        };
    }
View Full Code Here

Examples of org.omg.CONV_FRAME.CodeSetComponentInfo

        {
            connection.markTCSNegotiated();
            return;
        }

        CodeSetComponentInfo info = pior.getCodeSetComponentInfo();
        if (info != null && !ignoreComponentInfo)
        {
            connection.markTCSNegotiated(); // even if this aborts, we should not try negotiating again.
            CodeSet c1 = CodeSet.getNegotiatedCodeSet((org.jacorb.orb.ORB)orb, info, /* wide */ false );
            CodeSet c2 = CodeSet.getNegotiatedCodeSet((org.jacorb.orb.ORB)orb, info, /* wide */ true );
View Full Code Here

Examples of org.omg.CONV_FRAME.CodeSetComponentInfo

     * Verify that the local code set components offer the appropriate code sets.
     */
    @Test
    public void testLocalCodeSets() throws Exception
    {
        CodeSetComponentInfo info = getORB().getLocalCodeSetComponentInfo();
        assertNotNull( "iso 8859-1 not supported for char", CodeSet.getCodeSetIfMatched( ISO8859_1_ID, info.ForCharData ) );
        assertNotNull( "utf-8 not supported for char", CodeSet.getCodeSetIfMatched( UTF8_ID, info.ForCharData ) );
        assertNotNull( "utf-8 not supported for wchar", CodeSet.getCodeSetIfMatched( UTF8_ID, info.ForWcharData ) );
        assertNotNull( "utf-16 not supported for wchar", CodeSet.getCodeSetIfMatched( UTF16_ID, info.ForWcharData ) );
        assertNotNull( "ucs-2 not supported for wchar", CodeSet.getCodeSetIfMatched( UCS2, info.ForWcharData ) );
View Full Code Here

Examples of org.omg.CONV_FRAME.CodeSetComponentInfo

        return new ParsedIOR( (ORB) orb, new IOR( "", new TaggedProfile[0] ) )
        {
            @Override
            public CodeSetComponentInfo getCodeSetComponentInfo()
            {
                return new CodeSetComponentInfo( forCharData, forWCharData );
            }
        };
    }
View Full Code Here

Examples of org.omg.CONV_FRAME.CodeSetComponentInfo

        {
            in.openEncapsulatedArray();

            if (helper == CodeSetComponentInfoHelper.class)
            {
                result = new CodeSetComponentInfo();

                ((CodeSetComponentInfo)result).ForCharData =
                    (CodeSetComponentHelper.read(in));
                ((CodeSetComponentInfo)result).ForWcharData =
                    (CodeSetComponentHelper.read(in));
View Full Code Here

Examples of org.omg.CONV_FRAME.CodeSetComponentInfo

            {
                logger.error("Cannot set default NCSW to " + ncsw);
            }
        }

        localCodeSetComponentInfo = new CodeSetComponentInfo();
        localCodeSetComponentInfo.ForCharData = CodeSet.createCodeSetComponent( /* wide */ false, getTCSDefault() );
        localCodeSetComponentInfo.ForWcharData = CodeSet.createCodeSetComponent( /* wide */ true, getTCSWDefault() );
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.