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 File: IdentifiableContainerBase.java From JDKSourceCode1.8 with MIT License | 5 votes |
/** Return an iterator which iterates over all contained Identifiables * with type given by id. */ public Iterator iteratorById( final int id) { return new Iterator() { Iterator iter = IdentifiableContainerBase.this.iterator() ; Object current = advance() ; private Object advance() { while (iter.hasNext()) { Identifiable ide = (Identifiable)(iter.next()) ; if (ide.getId() == id) return ide ; } return null ; } public boolean hasNext() { return current != null ; } public Object next() { Object result = current ; current = advance() ; return result ; } public void remove() { iter.remove() ; } } ; }
Example #2
Source File: IIOPFactories.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
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 #3
Source File: IIOPFactories.java From JDKSourceCode1.8 with MIT License | 5 votes |
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 #4
Source File: IIOPFactories.java From JDKSourceCode1.8 with MIT License | 5 votes |
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 #5
Source File: IIOPFactories.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
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 #6
Source File: IdentifiableContainerBase.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
/** Return an iterator which iterates over all contained Identifiables * with type given by id. */ public Iterator iteratorById( final int id) { return new Iterator() { Iterator iter = IdentifiableContainerBase.this.iterator() ; Object current = advance() ; private Object advance() { while (iter.hasNext()) { Identifiable ide = (Identifiable)(iter.next()) ; if (ide.getId() == id) return ide ; } return null ; } public boolean hasNext() { return current != null ; } public Object next() { Object result = current ; current = advance() ; return result ; } public void remove() { iter.remove() ; } } ; }
Example #7
Source File: IIOPFactories.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
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 File: IIOPFactories.java From hottub with GNU General Public License v2.0 | 5 votes |
public static IdentifiableFactory makeCodeSetsComponentFactory() { return new EncapsulationFactoryBase(TAG_CODE_SETS.value) { public Identifiable readContents( InputStream in ) { return new CodeSetsComponentImpl( in ) ; } } ; }
Example #9
Source File: IdentifiableFactoryFinderBase.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
public Identifiable create(int id, InputStream is) { IdentifiableFactory factory = getFactory( id ) ; if (factory != null) return factory.create( is ) ; else return handleMissingFactory( id, is ) ; }
Example #10
Source File: IIOPFactories.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
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 #11
Source File: IIOPFactories.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
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 File: IIOPFactories.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
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 #13
Source File: EncapsulationUtility.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
/** 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 #14
Source File: IIOPFactories.java From JDKSourceCode1.8 with MIT License | 5 votes |
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 File: IIOPFactories.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
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 #16
Source File: IdentifiableContainerBase.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
/** Return an iterator which iterates over all contained Identifiables * with type given by id. */ public Iterator iteratorById( final int id) { return new Iterator() { Iterator iter = IdentifiableContainerBase.this.iterator() ; Object current = advance() ; private Object advance() { while (iter.hasNext()) { Identifiable ide = (Identifiable)(iter.next()) ; if (ide.getId() == id) return ide ; } return null ; } public boolean hasNext() { return current != null ; } public Object next() { Object result = current ; current = advance() ; return result ; } public void remove() { iter.remove() ; } } ; }
Example #17
Source File: IdentifiableContainerBase.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
/** Return an iterator which iterates over all contained Identifiables * with type given by id. */ public Iterator iteratorById( final int id) { return new Iterator() { Iterator iter = IdentifiableContainerBase.this.iterator() ; Object current = advance() ; private Object advance() { while (iter.hasNext()) { Identifiable ide = (Identifiable)(iter.next()) ; if (ide.getId() == id) return ide ; } return null ; } public boolean hasNext() { return current != null ; } public Object next() { Object result = current ; current = advance() ; return result ; } public void remove() { iter.remove() ; } } ; }
Example #18
Source File: EncapsulationUtility.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
/** 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 #19
Source File: IIOPFactories.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
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 File: IIOPFactories.java From hottub with GNU General Public License v2.0 | 5 votes |
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 #21
Source File: IIOPFactories.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
public static IdentifiableFactory makeIIOPProfileTemplateFactory() { return new EncapsulationFactoryBase(TAG_INTERNET_IOP.value) { public Identifiable readContents( InputStream in ) { Identifiable result = new IIOPProfileTemplateImpl( in ) ; return result ; } } ; }
Example #22
Source File: IIOPFactories.java From hottub with GNU General Public License v2.0 | 5 votes |
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 #23
Source File: IIOPFactories.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
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 #24
Source File: IIOPFactories.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
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 #25
Source File: IIOPFactories.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
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 #26
Source File: EncapsulationUtility.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
/** 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 #27
Source File: IIOPFactories.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
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 #28
Source File: IIOPFactories.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
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 #29
Source File: IIOPFactories.java From hottub with GNU General Public License v2.0 | 5 votes |
public static IdentifiableFactory makeIIOPProfileTemplateFactory() { return new EncapsulationFactoryBase(TAG_INTERNET_IOP.value) { public Identifiable readContents( InputStream in ) { Identifiable result = new IIOPProfileTemplateImpl( in ) ; return result ; } } ; }
Example #30
Source File: EncapsulationUtility.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
/** 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 ) ; } }