Examples of CodeSetComponent


Examples of org.omg.CONV_FRAME.CodeSetComponent

        int[] conversionSets = new int[codeSets.size()];
        for (int i = 0; i < conversionSets.length; i++)
        {
            conversionSets[i] = ((CodeSet) codeSets.get(i)).getId();
        }
        return new CodeSetComponent( nativeSet, conversionSets );
    }
View Full Code Here

Examples of org.omg.CONV_FRAME.CodeSetComponent

        int[] conversionSets = new int[codeSets.size()];
        for (int i = 0; i < conversionSets.length; i++)
        {
            conversionSets[i] = ((CodeSet) codeSets.get(i)).getId();
        }
        return new CodeSetComponent( nativeSet, conversionSets );
    }
View Full Code Here

Examples of org.omg.CONV_FRAME.CodeSetComponent

        int[] conversionSets = new int[codeSets.size()];
        for (int i = 0; i < conversionSets.length; i++)
        {
            conversionSets[i] = ((CodeSet) codeSets.get(i)).getId();
        }
        return new CodeSetComponent( nativeSet, conversionSets );
    }
View Full Code Here

Examples of org.omg.CONV_FRAME.CodeSetComponent

    /**
     * Verifies failure to match native code sets.
     */
    public void testCodeSetNativeSetsDoNotMatch() throws Exception
    {
        CodeSetComponent local = new CodeSetComponent( 1, new int[0] );
        CodeSetComponent remote = new CodeSetComponent( 0x21, new int[0] );
        try
        {
            CodeSet.getMatchingCodeSet( local, remote, /* wide */ true );
            fail( "Should have reported failure to match" );
        } catch (CODESET_INCOMPATIBLE e)
View Full Code Here

Examples of org.omg.CONV_FRAME.CodeSetComponent

    /**
     * Verifies success in matching native code sets.
     */
    public void testCodeSetNativeSetsMatch() throws Exception
    {
        CodeSetComponent local = new CodeSetComponent( UTF8_ID, new int[0] );
        CodeSetComponent remote = new CodeSetComponent( UTF8_ID, new int[0] );
        assertEquals( "Matched code set", UTF8_ID, CodeSet.getMatchingCodeSet( local, remote, /* wide */ false ).getId() );
    }
View Full Code Here

Examples of org.omg.CONV_FRAME.CodeSetComponent

    /**
     * Verifies success in matching local native code set to remote conversion set.
     */
    public void testCodeSetNativeSetMatchesRemoteConversion() throws Exception
    {
        CodeSetComponent local = new CodeSetComponent( UTF8_ID, new int[]{UTF16_ID} );
        CodeSetComponent remote = new CodeSetComponent( UTF16_ID, new int[]{UTF8_ID} );
        assertEquals( "Matched code set", UTF8_ID, CodeSet.getMatchingCodeSet( local, remote, /* wide */ false ).getId() );
    }
View Full Code Here

Examples of org.omg.CONV_FRAME.CodeSetComponent

    /**
     * Verifies success in matching local conversion code set to remote native set.
     */
    public void testConversionCodeSetMatchesRemoteNative() throws Exception
    {
        CodeSetComponent local = new CodeSetComponent( ISO8859_1_ID, new int[]{UTF16_ID} );
        CodeSetComponent remote = new CodeSetComponent( UTF16_ID, new int[]{UTF16_ID} );
        assertEquals( "Matched code set", UTF16_ID, CodeSet.getMatchingCodeSet( local, remote, /* wide */ false ).getId() );
    }
View Full Code Here

Examples of org.omg.CONV_FRAME.CodeSetComponent

    /**
     * Verifies success in matching conversion code sets.
     */
    public void testConversionCodeSetsMatch() throws Exception
    {
        CodeSetComponent local = new CodeSetComponent( 12, new int[]{UTF16_ID} );
        CodeSetComponent remote = new CodeSetComponent( 5, new int[]{UTF16_ID} );
        assertEquals( "Matched code set", UTF16_ID, CodeSet.getMatchingCodeSet( local, remote, /* wide */ false ).getId() );
    }
View Full Code Here

Examples of org.omg.CONV_FRAME.CodeSetComponent

    /**
     * Verifies failure to match any code sets.
     */
    public void testCodeSetsDoNotMatch() throws Exception
    {
        CodeSetComponent local = new CodeSetComponent( 1, new int[]{0x123, 0x345} );
        CodeSetComponent remote = new CodeSetComponent( 0x21, new int[]{0x34, 0x567, 0x890} );
        try
        {
            CodeSet.getMatchingCodeSet( local, remote, /* wide */ true );
            fail( "Should have reported failure to match" );
        } catch (CODESET_INCOMPATIBLE e)
View Full Code Here

Examples of org.omg.CONV_FRAME.CodeSetComponent

    }


    private ParsedIOR createParsedIOR( int charCodeSet, int[] conversionCharSets, int wcharCodeSet, int[] conversionWCharSets )
    {
        final CodeSetComponent forCharData = new CodeSetComponent( charCodeSet, conversionCharSets );
        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
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.