com.sun.corba.se.spi.ior.Identifiable Java Examples

The following examples show how to use com.sun.corba.se.spi.ior.Identifiable. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source Project: openjdk-8-source   Author: keerath   File: IIOPFactories.java    License: GNU General Public License v2.0 5 votes vote down vote up
public static IdentifiableFactory makeAlternateIIOPAddressComponentFactory()
{
    return new EncapsulationFactoryBase(TAG_ALTERNATE_IIOP_ADDRESS.value) {
        public Identifiable readContents( InputStream in )
        {
            IIOPAddress addr = new IIOPAddressImpl( in ) ;
            Identifiable comp =
                new AlternateIIOPAddressComponentImpl( addr ) ;
            return comp ;
        }
    } ;
}
 
Example #2
Source Project: openjdk-jdk9   Author: AdoptOpenJDK   File: IIOPFactories.java    License: GNU General Public License v2.0 5 votes vote down vote up
public static IdentifiableFactory makeCodeSetsComponentFactory()
{
    return new EncapsulationFactoryBase(TAG_CODE_SETS.value) {
        public Identifiable readContents( InputStream in )
        {
            return new CodeSetsComponentImpl( in ) ;
        }
    } ;
}
 
Example #3
Source Project: hottub   Author: dsrg-uoft   File: IIOPFactories.java    License: GNU General Public License v2.0 5 votes vote down vote up
public static IdentifiableFactory makeJavaCodebaseComponentFactory()
{
    return new EncapsulationFactoryBase(TAG_JAVA_CODEBASE.value) {
        public Identifiable readContents( InputStream in )
        {
            String url = in.read_string() ;
            Identifiable comp = new JavaCodebaseComponentImpl( url ) ;
            return comp ;
        }
    } ;
}
 
Example #4
Source Project: hottub   Author: dsrg-uoft   File: EncapsulationUtility.java    License: GNU General Public License v2.0 5 votes vote down vote up
/** Write all Identifiables that we contain to os.  The total
 * length must be written before this method is called.
 */
public static  void writeIdentifiableSequence( List container, OutputStream os)
{
    os.write_long( container.size() ) ;
    Iterator iter = container.iterator() ;
    while (iter.hasNext()) {
        Identifiable obj = (Identifiable)( iter.next() ) ;
        os.write_long( obj.getId() ) ;
        obj.write( os ) ;
    }
}
 
Example #5
Source Project: openjdk-jdk8u   Author: AdoptOpenJDK   File: IIOPFactories.java    License: GNU General Public License v2.0 5 votes vote down vote up
public static IdentifiableFactory makeIIOPProfileTemplateFactory()
{
    return new EncapsulationFactoryBase(TAG_INTERNET_IOP.value) {
        public Identifiable readContents( InputStream in )
        {
            Identifiable result = new IIOPProfileTemplateImpl( in ) ;
            return result ;
        }
    } ;
}
 
Example #6
Source Project: openjdk-jdk9   Author: AdoptOpenJDK   File: IIOPFactories.java    License: GNU General Public License v2.0 5 votes vote down vote up
public static IdentifiableFactory makeAlternateIIOPAddressComponentFactory()
{
    return new EncapsulationFactoryBase(TAG_ALTERNATE_IIOP_ADDRESS.value) {
        public Identifiable readContents( InputStream in )
        {
            IIOPAddress addr = new IIOPAddressImpl( in ) ;
            Identifiable comp =
                new AlternateIIOPAddressComponentImpl( addr ) ;
            return comp ;
        }
    } ;
}
 
Example #7
Source Project: jdk1.8-source-analysis   Author: raysonfang   File: IIOPFactories.java    License: Apache License 2.0 5 votes vote down vote up
public static IdentifiableFactory makeMaxStreamFormatVersionComponentFactory()
{
    return new EncapsulationFactoryBase(TAG_RMI_CUSTOM_MAX_STREAM_FORMAT.value) {
        public Identifiable readContents(InputStream in)
        {
            byte version = in.read_octet() ;
            Identifiable comp = new MaxStreamFormatVersionComponentImpl(version);
            return comp ;
        }
    };
}
 
Example #8
Source Project: openjdk-8   Author: bpupadhyaya   File: IIOPFactories.java    License: GNU General Public License v2.0 5 votes vote down vote up
public static IdentifiableFactory makeJavaCodebaseComponentFactory()
{
    return new EncapsulationFactoryBase(TAG_JAVA_CODEBASE.value) {
        public Identifiable readContents( InputStream in )
        {
            String url = in.read_string() ;
            Identifiable comp = new JavaCodebaseComponentImpl( url ) ;
            return comp ;
        }
    } ;
}
 
Example #9
Source Project: jdk1.8-source-analysis   Author: raysonfang   File: IIOPFactories.java    License: Apache License 2.0 5 votes vote down vote up
public static IdentifiableFactory makeIIOPProfileFactory()
{
    return new EncapsulationFactoryBase(TAG_INTERNET_IOP.value) {
        public Identifiable readContents( InputStream in )
        {
            Identifiable result = new IIOPProfileImpl( in ) ;
            return result ;
        }
    } ;
}
 
Example #10
Source Project: hottub   Author: dsrg-uoft   File: IdentifiableFactoryFinderBase.java    License: GNU General Public License v2.0 5 votes vote down vote up
public Identifiable create(int id, InputStream is)
{
    IdentifiableFactory factory = getFactory( id ) ;

    if (factory != null)
        return factory.create( is ) ;
    else
        return handleMissingFactory( id, is ) ;
}
 
Example #11
Source Project: openjdk-jdk9   Author: AdoptOpenJDK   File: IIOPFactories.java    License: GNU General Public License v2.0 5 votes vote down vote up
public static IdentifiableFactory makeORBTypeComponentFactory()
{
    return new EncapsulationFactoryBase(TAG_ORB_TYPE.value) {
        public Identifiable readContents( InputStream in )
        {
            int type = in.read_ulong() ;
            Identifiable comp = new ORBTypeComponentImpl( type ) ;
            return comp ;
        }
    } ;
}
 
Example #12
Source Project: openjdk-jdk8u-backup   Author: AdoptOpenJDK   File: IdentifiableFactoryFinderBase.java    License: GNU General Public License v2.0 5 votes vote down vote up
public Identifiable create(int id, InputStream is)
{
    IdentifiableFactory factory = getFactory( id ) ;

    if (factory != null)
        return factory.create( is ) ;
    else
        return handleMissingFactory( id, is ) ;
}
 
Example #13
Source Project: openjdk-jdk9   Author: AdoptOpenJDK   File: IIOPFactories.java    License: GNU General Public License v2.0 5 votes vote down vote up
public static IdentifiableFactory makeMaxStreamFormatVersionComponentFactory()
{
    return new EncapsulationFactoryBase(TAG_RMI_CUSTOM_MAX_STREAM_FORMAT.value) {
        public Identifiable readContents(InputStream in)
        {
            byte version = in.read_octet() ;
            Identifiable comp = new MaxStreamFormatVersionComponentImpl(version);
            return comp ;
        }
    };
}
 
Example #14
Source Project: TencentKona-8   Author: Tencent   File: IIOPFactories.java    License: GNU General Public License v2.0 5 votes vote down vote up
public static IdentifiableFactory makeAlternateIIOPAddressComponentFactory()
{
    return new EncapsulationFactoryBase(TAG_ALTERNATE_IIOP_ADDRESS.value) {
        public Identifiable readContents( InputStream in )
        {
            IIOPAddress addr = new IIOPAddressImpl( in ) ;
            Identifiable comp =
                new AlternateIIOPAddressComponentImpl( addr ) ;
            return comp ;
        }
    } ;
}
 
Example #15
Source Project: hottub   Author: dsrg-uoft   File: IIOPFactories.java    License: GNU General Public License v2.0 5 votes vote down vote up
public static IdentifiableFactory makeIIOPProfileFactory()
{
    return new EncapsulationFactoryBase(TAG_INTERNET_IOP.value) {
        public Identifiable readContents( InputStream in )
        {
            Identifiable result = new IIOPProfileImpl( in ) ;
            return result ;
        }
    } ;
}
 
Example #16
Source Project: hottub   Author: dsrg-uoft   File: IIOPFactories.java    License: GNU General Public License v2.0 5 votes vote down vote up
public static IdentifiableFactory makeAlternateIIOPAddressComponentFactory()
{
    return new EncapsulationFactoryBase(TAG_ALTERNATE_IIOP_ADDRESS.value) {
        public Identifiable readContents( InputStream in )
        {
            IIOPAddress addr = new IIOPAddressImpl( in ) ;
            Identifiable comp =
                new AlternateIIOPAddressComponentImpl( addr ) ;
            return comp ;
        }
    } ;
}
 
Example #17
Source Project: openjdk-8   Author: bpupadhyaya   File: EncapsulationUtility.java    License: GNU General Public License v2.0 5 votes vote down vote up
/** Write all Identifiables that we contain to os.  The total
 * length must be written before this method is called.
 */
public static  void writeIdentifiableSequence( List container, OutputStream os)
{
    os.write_long( container.size() ) ;
    Iterator iter = container.iterator() ;
    while (iter.hasNext()) {
        Identifiable obj = (Identifiable)( iter.next() ) ;
        os.write_long( obj.getId() ) ;
        obj.write( os ) ;
    }
}
 
Example #18
Source Project: TencentKona-8   Author: Tencent   File: IIOPFactories.java    License: GNU General Public License v2.0 5 votes vote down vote up
public static IdentifiableFactory makeMaxStreamFormatVersionComponentFactory()
{
    return new EncapsulationFactoryBase(TAG_RMI_CUSTOM_MAX_STREAM_FORMAT.value) {
        public Identifiable readContents(InputStream in)
        {
            byte version = in.read_octet() ;
            Identifiable comp = new MaxStreamFormatVersionComponentImpl(version);
            return comp ;
        }
    };
}
 
Example #19
Source Project: TencentKona-8   Author: Tencent   File: IIOPFactories.java    License: GNU General Public License v2.0 5 votes vote down vote up
public static IdentifiableFactory makeJavaSerializationComponentFactory() {
    return new EncapsulationFactoryBase(
                            ORBConstants.TAG_JAVA_SERIALIZATION_ID) {
        public Identifiable readContents(InputStream in) {
            byte version = in.read_octet();
            Identifiable cmp = new JavaSerializationComponent(version);
            return cmp;
        }
    };
}
 
Example #20
Source Project: TencentKona-8   Author: Tencent   File: IIOPFactories.java    License: GNU General Public License v2.0 5 votes vote down vote up
public static IdentifiableFactory makeIIOPProfileTemplateFactory()
{
    return new EncapsulationFactoryBase(TAG_INTERNET_IOP.value) {
        public Identifiable readContents( InputStream in )
        {
            Identifiable result = new IIOPProfileTemplateImpl( in ) ;
            return result ;
        }
    } ;
}
 
Example #21
Source Project: TencentKona-8   Author: Tencent   File: IdentifiableFactoryFinderBase.java    License: GNU General Public License v2.0 5 votes vote down vote up
public Identifiable create(int id, InputStream is)
{
    IdentifiableFactory factory = getFactory( id ) ;

    if (factory != null)
        return factory.create( is ) ;
    else
        return handleMissingFactory( id, is ) ;
}
 
Example #22
Source Project: openjdk-8   Author: bpupadhyaya   File: IIOPFactories.java    License: GNU General Public License v2.0 5 votes vote down vote up
public static IdentifiableFactory makeAlternateIIOPAddressComponentFactory()
{
    return new EncapsulationFactoryBase(TAG_ALTERNATE_IIOP_ADDRESS.value) {
        public Identifiable readContents( InputStream in )
        {
            IIOPAddress addr = new IIOPAddressImpl( in ) ;
            Identifiable comp =
                new AlternateIIOPAddressComponentImpl( addr ) ;
            return comp ;
        }
    } ;
}
 
Example #23
Source Project: openjdk-8   Author: bpupadhyaya   File: IIOPFactories.java    License: GNU General Public License v2.0 5 votes vote down vote up
public static IdentifiableFactory makeMaxStreamFormatVersionComponentFactory()
{
    return new EncapsulationFactoryBase(TAG_RMI_CUSTOM_MAX_STREAM_FORMAT.value) {
        public Identifiable readContents(InputStream in)
        {
            byte version = in.read_octet() ;
            Identifiable comp = new MaxStreamFormatVersionComponentImpl(version);
            return comp ;
        }
    };
}
 
Example #24
Source Project: openjdk-jdk8u-backup   Author: AdoptOpenJDK   File: EncapsulationUtility.java    License: GNU General Public License v2.0 5 votes vote down vote up
/** Write all Identifiables that we contain to os.  The total
 * length must be written before this method is called.
 */
public static  void writeIdentifiableSequence( List container, OutputStream os)
{
    os.write_long( container.size() ) ;
    Iterator iter = container.iterator() ;
    while (iter.hasNext()) {
        Identifiable obj = (Identifiable)( iter.next() ) ;
        os.write_long( obj.getId() ) ;
        obj.write( os ) ;
    }
}
 
Example #25
Source Project: hottub   Author: dsrg-uoft   File: IIOPFactories.java    License: GNU General Public License v2.0 5 votes vote down vote up
public static IdentifiableFactory makeIIOPProfileTemplateFactory()
{
    return new EncapsulationFactoryBase(TAG_INTERNET_IOP.value) {
        public Identifiable readContents( InputStream in )
        {
            Identifiable result = new IIOPProfileTemplateImpl( in ) ;
            return result ;
        }
    } ;
}
 
Example #26
Source Project: openjdk-jdk8u-backup   Author: AdoptOpenJDK   File: IIOPFactories.java    License: GNU General Public License v2.0 5 votes vote down vote up
public static IdentifiableFactory makeRequestPartitioningComponentFactory()
{
    return new EncapsulationFactoryBase(ORBConstants.TAG_REQUEST_PARTITIONING_ID) {
        public Identifiable readContents(InputStream in)
        {
            int threadPoolToUse = in.read_ulong();
            Identifiable comp =
                new RequestPartitioningComponentImpl(threadPoolToUse);
            return comp;
        }
    };
}
 
Example #27
Source Project: openjdk-8   Author: bpupadhyaya   File: IIOPFactories.java    License: GNU General Public License v2.0 5 votes vote down vote up
public static IdentifiableFactory makeIIOPProfileTemplateFactory()
{
    return new EncapsulationFactoryBase(TAG_INTERNET_IOP.value) {
        public Identifiable readContents( InputStream in )
        {
            Identifiable result = new IIOPProfileTemplateImpl( in ) ;
            return result ;
        }
    } ;
}
 
Example #28
Source Project: openjdk-jdk8u   Author: AdoptOpenJDK   File: EncapsulationUtility.java    License: GNU General Public License v2.0 5 votes vote down vote up
/** Read the count from is, then read count Identifiables from
 * is using the factory.  Add each constructed Identifiable to container.
 */
public static void readIdentifiableSequence( List container,
    IdentifiableFactoryFinder finder, InputStream istr)
{
    int count = istr.read_long() ;
    for (int ctr = 0; ctr<count; ctr++) {
        int id = istr.read_long() ;
        Identifiable obj = finder.create( id, istr ) ;
        container.add( obj ) ;
    }
}
 
Example #29
Source Project: jdk8u60   Author: chenghanpeng   File: IIOPFactories.java    License: GNU General Public License v2.0 5 votes vote down vote up
public static IdentifiableFactory makeORBTypeComponentFactory()
{
    return new EncapsulationFactoryBase(TAG_ORB_TYPE.value) {
        public Identifiable readContents( InputStream in )
        {
            int type = in.read_ulong() ;
            Identifiable comp = new ORBTypeComponentImpl( type ) ;
            return comp ;
        }
    } ;
}
 
Example #30
Source Project: jdk8u60   Author: chenghanpeng   File: IIOPFactories.java    License: GNU General Public License v2.0 5 votes vote down vote up
public static IdentifiableFactory makeMaxStreamFormatVersionComponentFactory()
{
    return new EncapsulationFactoryBase(TAG_RMI_CUSTOM_MAX_STREAM_FORMAT.value) {
        public Identifiable readContents(InputStream in)
        {
            byte version = in.read_octet() ;
            Identifiable comp = new MaxStreamFormatVersionComponentImpl(version);
            return comp ;
        }
    };
}