com.sun.jndi.toolkit.corba.CorbaUtils Java Examples
The following examples show how to use
com.sun.jndi.toolkit.corba.CorbaUtils.
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: RemoteToCorba.java From openjdk-8 with GNU General Public License v2.0 | 6 votes |
/** * Returns the CORBA object for a Remote object. * If input is not a Remote object, or if Remote object uses JRMP, return null. * If the RMI-IIOP library is not available, throw ConfigurationException. * * @param orig The object to turn into a CORBA object. If not Remote, * or if is a JRMP stub or impl, return null. * @param name Ignored * @param ctx The non-null CNCtx whose ORB to use. * @param env Ignored * @return The CORBA object for <tt>orig</tt> or null. * @exception ConfigurationException If the CORBA object cannot be obtained * due to configuration problems, for instance, if RMI-IIOP not available. * @exception NamingException If some other problem prevented a CORBA * object from being obtained from the Remote object. */ public Object getStateToBind(Object orig, Name name, Context ctx, Hashtable<?,?> env) throws NamingException { if (orig instanceof org.omg.CORBA.Object) { // Already a CORBA object, just use it return null; } if (orig instanceof Remote) { // Turn remote object into org.omg.CORBA.Object try { // Returns null if JRMP; let next factory try // CNCtx will eventually throw IllegalArgumentException if // no CORBA object gotten return CorbaUtils.remoteToCorba((Remote)orig, ((CNCtx)ctx)._orb); } catch (ClassNotFoundException e) { // RMI-IIOP library not available throw new ConfigurationException( "javax.rmi packages not available"); } } return null; // pass and let next state factory try }
Example #2
Source File: RemoteToCorba.java From hottub with GNU General Public License v2.0 | 6 votes |
/** * Returns the CORBA object for a Remote object. * If input is not a Remote object, or if Remote object uses JRMP, return null. * If the RMI-IIOP library is not available, throw ConfigurationException. * * @param orig The object to turn into a CORBA object. If not Remote, * or if is a JRMP stub or impl, return null. * @param name Ignored * @param ctx The non-null CNCtx whose ORB to use. * @param env Ignored * @return The CORBA object for <tt>orig</tt> or null. * @exception ConfigurationException If the CORBA object cannot be obtained * due to configuration problems, for instance, if RMI-IIOP not available. * @exception NamingException If some other problem prevented a CORBA * object from being obtained from the Remote object. */ public Object getStateToBind(Object orig, Name name, Context ctx, Hashtable<?,?> env) throws NamingException { if (orig instanceof org.omg.CORBA.Object) { // Already a CORBA object, just use it return null; } if (orig instanceof Remote) { // Turn remote object into org.omg.CORBA.Object try { // Returns null if JRMP; let next factory try // CNCtx will eventually throw IllegalArgumentException if // no CORBA object gotten return CorbaUtils.remoteToCorba((Remote)orig, ((CNCtx)ctx)._orb); } catch (ClassNotFoundException e) { // RMI-IIOP library not available throw new ConfigurationException( "javax.rmi packages not available"); } } return null; // pass and let next state factory try }
Example #3
Source File: RemoteToCorba.java From jdk8u-jdk with GNU General Public License v2.0 | 6 votes |
/** * Returns the CORBA object for a Remote object. * If input is not a Remote object, or if Remote object uses JRMP, return null. * If the RMI-IIOP library is not available, throw ConfigurationException. * * @param orig The object to turn into a CORBA object. If not Remote, * or if is a JRMP stub or impl, return null. * @param name Ignored * @param ctx The non-null CNCtx whose ORB to use. * @param env Ignored * @return The CORBA object for <tt>orig</tt> or null. * @exception ConfigurationException If the CORBA object cannot be obtained * due to configuration problems, for instance, if RMI-IIOP not available. * @exception NamingException If some other problem prevented a CORBA * object from being obtained from the Remote object. */ public Object getStateToBind(Object orig, Name name, Context ctx, Hashtable<?,?> env) throws NamingException { if (orig instanceof org.omg.CORBA.Object) { // Already a CORBA object, just use it return null; } if (orig instanceof Remote) { // Turn remote object into org.omg.CORBA.Object try { // Returns null if JRMP; let next factory try // CNCtx will eventually throw IllegalArgumentException if // no CORBA object gotten return CorbaUtils.remoteToCorba((Remote)orig, ((CNCtx)ctx)._orb); } catch (ClassNotFoundException e) { // RMI-IIOP library not available throw new ConfigurationException( "javax.rmi packages not available"); } } return null; // pass and let next state factory try }
Example #4
Source File: RemoteToCorba.java From dragonwell8_jdk with GNU General Public License v2.0 | 6 votes |
/** * Returns the CORBA object for a Remote object. * If input is not a Remote object, or if Remote object uses JRMP, return null. * If the RMI-IIOP library is not available, throw ConfigurationException. * * @param orig The object to turn into a CORBA object. If not Remote, * or if is a JRMP stub or impl, return null. * @param name Ignored * @param ctx The non-null CNCtx whose ORB to use. * @param env Ignored * @return The CORBA object for <tt>orig</tt> or null. * @exception ConfigurationException If the CORBA object cannot be obtained * due to configuration problems, for instance, if RMI-IIOP not available. * @exception NamingException If some other problem prevented a CORBA * object from being obtained from the Remote object. */ public Object getStateToBind(Object orig, Name name, Context ctx, Hashtable<?,?> env) throws NamingException { if (orig instanceof org.omg.CORBA.Object) { // Already a CORBA object, just use it return null; } if (orig instanceof Remote) { // Turn remote object into org.omg.CORBA.Object try { // Returns null if JRMP; let next factory try // CNCtx will eventually throw IllegalArgumentException if // no CORBA object gotten return CorbaUtils.remoteToCorba((Remote)orig, ((CNCtx)ctx)._orb); } catch (ClassNotFoundException e) { // RMI-IIOP library not available throw new ConfigurationException( "javax.rmi packages not available"); } } return null; // pass and let next state factory try }
Example #5
Source File: RemoteToCorba.java From openjdk-8-source with GNU General Public License v2.0 | 6 votes |
/** * Returns the CORBA object for a Remote object. * If input is not a Remote object, or if Remote object uses JRMP, return null. * If the RMI-IIOP library is not available, throw ConfigurationException. * * @param orig The object to turn into a CORBA object. If not Remote, * or if is a JRMP stub or impl, return null. * @param name Ignored * @param ctx The non-null CNCtx whose ORB to use. * @param env Ignored * @return The CORBA object for <tt>orig</tt> or null. * @exception ConfigurationException If the CORBA object cannot be obtained * due to configuration problems, for instance, if RMI-IIOP not available. * @exception NamingException If some other problem prevented a CORBA * object from being obtained from the Remote object. */ public Object getStateToBind(Object orig, Name name, Context ctx, Hashtable<?,?> env) throws NamingException { if (orig instanceof org.omg.CORBA.Object) { // Already a CORBA object, just use it return null; } if (orig instanceof Remote) { // Turn remote object into org.omg.CORBA.Object try { // Returns null if JRMP; let next factory try // CNCtx will eventually throw IllegalArgumentException if // no CORBA object gotten return CorbaUtils.remoteToCorba((Remote)orig, ((CNCtx)ctx)._orb); } catch (ClassNotFoundException e) { // RMI-IIOP library not available throw new ConfigurationException( "javax.rmi packages not available"); } } return null; // pass and let next state factory try }
Example #6
Source File: RemoteToCorba.java From openjdk-jdk9 with GNU General Public License v2.0 | 6 votes |
/** * Returns the CORBA object for a Remote object. * If input is not a Remote object, or if Remote object uses JRMP, return null. * If the RMI-IIOP library is not available, throw ConfigurationException. * * @param orig The object to turn into a CORBA object. If not Remote, * or if is a JRMP stub or impl, return null. * @param name Ignored * @param ctx The non-null CNCtx whose ORB to use. * @param env Ignored * @return The CORBA object for {@code orig} or null. * @exception ConfigurationException If the CORBA object cannot be obtained * due to configuration problems, for instance, if RMI-IIOP not available. * @exception NamingException If some other problem prevented a CORBA * object from being obtained from the Remote object. */ public Object getStateToBind(Object orig, Name name, Context ctx, Hashtable<?,?> env) throws NamingException { if (orig instanceof org.omg.CORBA.Object) { // Already a CORBA object, just use it return null; } if (orig instanceof Remote) { // Turn remote object into org.omg.CORBA.Object // Returns null if JRMP; let next factory try // CNCtx will eventually throw IllegalArgumentException if // no CORBA object gotten return CorbaUtils.remoteToCorba((Remote)orig, ((CNCtx)ctx)._orb); } return null; // pass and let next state factory try }
Example #7
Source File: RemoteToCorba.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 6 votes |
/** * Returns the CORBA object for a Remote object. * If input is not a Remote object, or if Remote object uses JRMP, return null. * If the RMI-IIOP library is not available, throw ConfigurationException. * * @param orig The object to turn into a CORBA object. If not Remote, * or if is a JRMP stub or impl, return null. * @param name Ignored * @param ctx The non-null CNCtx whose ORB to use. * @param env Ignored * @return The CORBA object for <tt>orig</tt> or null. * @exception ConfigurationException If the CORBA object cannot be obtained * due to configuration problems, for instance, if RMI-IIOP not available. * @exception NamingException If some other problem prevented a CORBA * object from being obtained from the Remote object. */ public Object getStateToBind(Object orig, Name name, Context ctx, Hashtable<?,?> env) throws NamingException { if (orig instanceof org.omg.CORBA.Object) { // Already a CORBA object, just use it return null; } if (orig instanceof Remote) { // Turn remote object into org.omg.CORBA.Object try { // Returns null if JRMP; let next factory try // CNCtx will eventually throw IllegalArgumentException if // no CORBA object gotten return CorbaUtils.remoteToCorba((Remote)orig, ((CNCtx)ctx)._orb); } catch (ClassNotFoundException e) { // RMI-IIOP library not available throw new ConfigurationException( "javax.rmi packages not available"); } } return null; // pass and let next state factory try }
Example #8
Source File: RemoteToCorba.java From openjdk-jdk8u with GNU General Public License v2.0 | 6 votes |
/** * Returns the CORBA object for a Remote object. * If input is not a Remote object, or if Remote object uses JRMP, return null. * If the RMI-IIOP library is not available, throw ConfigurationException. * * @param orig The object to turn into a CORBA object. If not Remote, * or if is a JRMP stub or impl, return null. * @param name Ignored * @param ctx The non-null CNCtx whose ORB to use. * @param env Ignored * @return The CORBA object for <tt>orig</tt> or null. * @exception ConfigurationException If the CORBA object cannot be obtained * due to configuration problems, for instance, if RMI-IIOP not available. * @exception NamingException If some other problem prevented a CORBA * object from being obtained from the Remote object. */ public Object getStateToBind(Object orig, Name name, Context ctx, Hashtable<?,?> env) throws NamingException { if (orig instanceof org.omg.CORBA.Object) { // Already a CORBA object, just use it return null; } if (orig instanceof Remote) { // Turn remote object into org.omg.CORBA.Object try { // Returns null if JRMP; let next factory try // CNCtx will eventually throw IllegalArgumentException if // no CORBA object gotten return CorbaUtils.remoteToCorba((Remote)orig, ((CNCtx)ctx)._orb); } catch (ClassNotFoundException e) { // RMI-IIOP library not available throw new ConfigurationException( "javax.rmi packages not available"); } } return null; // pass and let next state factory try }
Example #9
Source File: RemoteToCorba.java From jdk8u_jdk with GNU General Public License v2.0 | 6 votes |
/** * Returns the CORBA object for a Remote object. * If input is not a Remote object, or if Remote object uses JRMP, return null. * If the RMI-IIOP library is not available, throw ConfigurationException. * * @param orig The object to turn into a CORBA object. If not Remote, * or if is a JRMP stub or impl, return null. * @param name Ignored * @param ctx The non-null CNCtx whose ORB to use. * @param env Ignored * @return The CORBA object for <tt>orig</tt> or null. * @exception ConfigurationException If the CORBA object cannot be obtained * due to configuration problems, for instance, if RMI-IIOP not available. * @exception NamingException If some other problem prevented a CORBA * object from being obtained from the Remote object. */ public Object getStateToBind(Object orig, Name name, Context ctx, Hashtable<?,?> env) throws NamingException { if (orig instanceof org.omg.CORBA.Object) { // Already a CORBA object, just use it return null; } if (orig instanceof Remote) { // Turn remote object into org.omg.CORBA.Object try { // Returns null if JRMP; let next factory try // CNCtx will eventually throw IllegalArgumentException if // no CORBA object gotten return CorbaUtils.remoteToCorba((Remote)orig, ((CNCtx)ctx)._orb); } catch (ClassNotFoundException e) { // RMI-IIOP library not available throw new ConfigurationException( "javax.rmi packages not available"); } } return null; // pass and let next state factory try }
Example #10
Source File: RemoteToCorba.java From jdk8u60 with GNU General Public License v2.0 | 6 votes |
/** * Returns the CORBA object for a Remote object. * If input is not a Remote object, or if Remote object uses JRMP, return null. * If the RMI-IIOP library is not available, throw ConfigurationException. * * @param orig The object to turn into a CORBA object. If not Remote, * or if is a JRMP stub or impl, return null. * @param name Ignored * @param ctx The non-null CNCtx whose ORB to use. * @param env Ignored * @return The CORBA object for <tt>orig</tt> or null. * @exception ConfigurationException If the CORBA object cannot be obtained * due to configuration problems, for instance, if RMI-IIOP not available. * @exception NamingException If some other problem prevented a CORBA * object from being obtained from the Remote object. */ public Object getStateToBind(Object orig, Name name, Context ctx, Hashtable<?,?> env) throws NamingException { if (orig instanceof org.omg.CORBA.Object) { // Already a CORBA object, just use it return null; } if (orig instanceof Remote) { // Turn remote object into org.omg.CORBA.Object try { // Returns null if JRMP; let next factory try // CNCtx will eventually throw IllegalArgumentException if // no CORBA object gotten return CorbaUtils.remoteToCorba((Remote)orig, ((CNCtx)ctx)._orb); } catch (ClassNotFoundException e) { // RMI-IIOP library not available throw new ConfigurationException( "javax.rmi packages not available"); } } return null; // pass and let next state factory try }
Example #11
Source File: RemoteToCorba.java From jdk8u-jdk with GNU General Public License v2.0 | 6 votes |
/** * Returns the CORBA object for a Remote object. * If input is not a Remote object, or if Remote object uses JRMP, return null. * If the RMI-IIOP library is not available, throw ConfigurationException. * * @param orig The object to turn into a CORBA object. If not Remote, * or if is a JRMP stub or impl, return null. * @param name Ignored * @param ctx The non-null CNCtx whose ORB to use. * @param env Ignored * @return The CORBA object for <tt>orig</tt> or null. * @exception ConfigurationException If the CORBA object cannot be obtained * due to configuration problems, for instance, if RMI-IIOP not available. * @exception NamingException If some other problem prevented a CORBA * object from being obtained from the Remote object. */ public Object getStateToBind(Object orig, Name name, Context ctx, Hashtable<?,?> env) throws NamingException { if (orig instanceof org.omg.CORBA.Object) { // Already a CORBA object, just use it return null; } if (orig instanceof Remote) { // Turn remote object into org.omg.CORBA.Object try { // Returns null if JRMP; let next factory try // CNCtx will eventually throw IllegalArgumentException if // no CORBA object gotten return CorbaUtils.remoteToCorba((Remote)orig, ((CNCtx)ctx)._orb); } catch (ClassNotFoundException e) { // RMI-IIOP library not available throw new ConfigurationException( "javax.rmi packages not available"); } } return null; // pass and let next state factory try }
Example #12
Source File: RemoteToCorba.java From TencentKona-8 with GNU General Public License v2.0 | 6 votes |
/** * Returns the CORBA object for a Remote object. * If input is not a Remote object, or if Remote object uses JRMP, return null. * If the RMI-IIOP library is not available, throw ConfigurationException. * * @param orig The object to turn into a CORBA object. If not Remote, * or if is a JRMP stub or impl, return null. * @param name Ignored * @param ctx The non-null CNCtx whose ORB to use. * @param env Ignored * @return The CORBA object for <tt>orig</tt> or null. * @exception ConfigurationException If the CORBA object cannot be obtained * due to configuration problems, for instance, if RMI-IIOP not available. * @exception NamingException If some other problem prevented a CORBA * object from being obtained from the Remote object. */ public Object getStateToBind(Object orig, Name name, Context ctx, Hashtable<?,?> env) throws NamingException { if (orig instanceof org.omg.CORBA.Object) { // Already a CORBA object, just use it return null; } if (orig instanceof Remote) { // Turn remote object into org.omg.CORBA.Object try { // Returns null if JRMP; let next factory try // CNCtx will eventually throw IllegalArgumentException if // no CORBA object gotten return CorbaUtils.remoteToCorba((Remote)orig, ((CNCtx)ctx)._orb); } catch (ClassNotFoundException e) { // RMI-IIOP library not available throw new ConfigurationException( "javax.rmi packages not available"); } } return null; // pass and let next state factory try }
Example #13
Source File: RemoteToCorba.java From jdk8u-dev-jdk with GNU General Public License v2.0 | 6 votes |
/** * Returns the CORBA object for a Remote object. * If input is not a Remote object, or if Remote object uses JRMP, return null. * If the RMI-IIOP library is not available, throw ConfigurationException. * * @param orig The object to turn into a CORBA object. If not Remote, * or if is a JRMP stub or impl, return null. * @param name Ignored * @param ctx The non-null CNCtx whose ORB to use. * @param env Ignored * @return The CORBA object for <tt>orig</tt> or null. * @exception ConfigurationException If the CORBA object cannot be obtained * due to configuration problems, for instance, if RMI-IIOP not available. * @exception NamingException If some other problem prevented a CORBA * object from being obtained from the Remote object. */ public Object getStateToBind(Object orig, Name name, Context ctx, Hashtable<?,?> env) throws NamingException { if (orig instanceof org.omg.CORBA.Object) { // Already a CORBA object, just use it return null; } if (orig instanceof Remote) { // Turn remote object into org.omg.CORBA.Object try { // Returns null if JRMP; let next factory try // CNCtx will eventually throw IllegalArgumentException if // no CORBA object gotten return CorbaUtils.remoteToCorba((Remote)orig, ((CNCtx)ctx)._orb); } catch (ClassNotFoundException e) { // RMI-IIOP library not available throw new ConfigurationException( "javax.rmi packages not available"); } } return null; // pass and let next state factory try }
Example #14
Source File: CNCtx.java From jdk8u_jdk with GNU General Public License v2.0 | 5 votes |
private synchronized static ORB getDefaultOrb() { if (_defaultOrb == null) { _defaultOrb = CorbaUtils.getOrb(null, -1, new Hashtable<String, java.lang.Object>()); } return _defaultOrb; }
Example #15
Source File: CNCtx.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
private synchronized static ORB getDefaultOrb() { if (_defaultOrb == null) { _defaultOrb = CorbaUtils.getOrb(null, -1, new Hashtable<String, java.lang.Object>()); } return _defaultOrb; }
Example #16
Source File: CNCtx.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
private synchronized static ORB getDefaultOrb() { if (_defaultOrb == null) { _defaultOrb = CorbaUtils.getOrb(null, -1, new Hashtable<String, java.lang.Object>()); } return _defaultOrb; }
Example #17
Source File: Test6852078.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
public Test6852078(String [] args) { int capacity = 128; ByteBuffer bb = ByteBuffer.allocateDirect(capacity); ByteBufferWithInfo bbwi = new ByteBufferWithInfo( CorbaUtils.getOrb(null, -1, new Hashtable()), bb); byte[] tmpBuf; tmpBuf = new byte[bbwi.buflen]; for (int i = 0; i < capacity; i++) tmpBuf[i] = bbwi.byteBuffer.get(i); }
Example #18
Source File: CNCtx.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
private synchronized static ORB getDefaultOrb() { if (_defaultOrb == null) { _defaultOrb = CorbaUtils.getOrb(null, -1, new Hashtable<String, java.lang.Object>()); } return _defaultOrb; }
Example #19
Source File: CNCtx.java From jdk8u-jdk with GNU General Public License v2.0 | 5 votes |
private synchronized static ORB getDefaultOrb() { if (_defaultOrb == null) { _defaultOrb = CorbaUtils.getOrb(null, -1, new Hashtable<String, java.lang.Object>()); } return _defaultOrb; }
Example #20
Source File: Test6852078.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
public Test6852078(String [] args) { int capacity = 128; ByteBuffer bb = ByteBuffer.allocateDirect(capacity); ByteBufferWithInfo bbwi = new ByteBufferWithInfo( CorbaUtils.getOrb(null, -1, new Hashtable()), bb); byte[] tmpBuf; tmpBuf = new byte[bbwi.buflen]; for (int i = 0; i < capacity; i++) tmpBuf[i] = bbwi.byteBuffer.get(i); }
Example #21
Source File: CNCtx.java From hottub with GNU General Public License v2.0 | 5 votes |
private synchronized static ORB getDefaultOrb() { if (_defaultOrb == null) { _defaultOrb = CorbaUtils.getOrb(null, -1, new Hashtable<String, java.lang.Object>()); } return _defaultOrb; }
Example #22
Source File: CNCtx.java From jdk8u-dev-jdk with GNU General Public License v2.0 | 5 votes |
private synchronized static ORB getDefaultOrb() { if (_defaultOrb == null) { _defaultOrb = CorbaUtils.getOrb(null, -1, new Hashtable<String, java.lang.Object>()); } return _defaultOrb; }
Example #23
Source File: Test6852078.java From hottub with GNU General Public License v2.0 | 5 votes |
public Test6852078(String [] args) { int capacity = 128; ByteBuffer bb = ByteBuffer.allocateDirect(capacity); ByteBufferWithInfo bbwi = new ByteBufferWithInfo( CorbaUtils.getOrb(null, -1, new Hashtable()), bb); byte[] tmpBuf; tmpBuf = new byte[bbwi.buflen]; for (int i = 0; i < capacity; i++) tmpBuf[i] = bbwi.byteBuffer.get(i); }
Example #24
Source File: CNCtx.java From jdk8u-jdk with GNU General Public License v2.0 | 5 votes |
private synchronized static ORB getDefaultOrb() { if (_defaultOrb == null) { _defaultOrb = CorbaUtils.getOrb(null, -1, new Hashtable<String, java.lang.Object>()); } return _defaultOrb; }
Example #25
Source File: CorbanameUrl.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
public CorbanameUrl(String url) throws MalformedURLException { if (!url.startsWith("corbaname:")) { throw new MalformedURLException("Invalid corbaname URL: " + url); } int addrStart = 10; // "corbaname:" int addrEnd = url.indexOf('#', addrStart); if (addrEnd < 0) { addrEnd = url.length(); stringName = ""; } else { stringName = CorbaUtils.decode(url.substring(addrEnd+1)); } location = url.substring(addrStart, addrEnd); int keyStart = location.indexOf('/'); if (keyStart >= 0) { // Has key string if (keyStart == (location.length() -1)) { location += "NameService"; } } else { location += "/NameService"; } }
Example #26
Source File: IiopUrl.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
public IiopUrl(String url) throws MalformedURLException { int addrStart; boolean oldFormat; if (url.startsWith("iiopname://")) { oldFormat = false; addrStart = 11; } else if (url.startsWith("iiop://")) { oldFormat = true; addrStart = 7; } else { throw new MalformedURLException("Invalid iiop/iiopname URL: " + url); } int addrEnd = url.indexOf('/', addrStart); if (addrEnd < 0) { addrEnd = url.length(); stringName = ""; } else { stringName = CorbaUtils.decode(url.substring(addrEnd+1)); } addresses = new Vector<>(3); if (oldFormat) { // Only one host:port part, not multiple addresses.addElement( new Address(url.substring(addrStart, addrEnd), oldFormat)); } else { StringTokenizer tokens = new StringTokenizer(url.substring(addrStart, addrEnd), ","); while (tokens.hasMoreTokens()) { addresses.addElement(new Address(tokens.nextToken(), oldFormat)); } if (addresses.size() == 0) { addresses.addElement(new Address("", oldFormat)); } } }
Example #27
Source File: Test6852078.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
public Test6852078(String [] args) { int capacity = 128; ByteBuffer bb = ByteBuffer.allocateDirect(capacity); ByteBufferWithInfo bbwi = new ByteBufferWithInfo( CorbaUtils.getOrb(null, -1, new Hashtable()), bb); byte[] tmpBuf; tmpBuf = new byte[bbwi.buflen]; for (int i = 0; i < capacity; i++) tmpBuf[i] = bbwi.byteBuffer.get(i); }
Example #28
Source File: CNCtx.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
private synchronized static ORB getDefaultOrb() { if (_defaultOrb == null) { _defaultOrb = CorbaUtils.getOrb(null, -1, new Hashtable<String, java.lang.Object>()); } return _defaultOrb; }
Example #29
Source File: Test6852078.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
public Test6852078(String [] args) { int capacity = 128; ByteBuffer bb = ByteBuffer.allocateDirect(capacity); ByteBufferWithInfo bbwi = new ByteBufferWithInfo( CorbaUtils.getOrb(null, -1, new Hashtable()), bb); byte[] tmpBuf; tmpBuf = new byte[bbwi.buflen]; for (int i = 0; i < capacity; i++) tmpBuf[i] = bbwi.byteBuffer.get(i); }
Example #30
Source File: CNCtx.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
private synchronized static ORB getDefaultOrb() { if (_defaultOrb == null) { _defaultOrb = CorbaUtils.getOrb(null, -1, new Hashtable<String, java.lang.Object>()); } return _defaultOrb; }