Java Code Examples for org.omg.CORBA.OctetSeqHelper#read()
The following examples show how to use
org.omg.CORBA.OctetSeqHelper#read() .
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: ServiceContexts.java From jdk1.8-source-analysis with Apache License 2.0 | 6 votes |
/** * Given the input stream, this fills our service * context map. See the definition of scMap for * details. Creates a HashMap. * * Note that we don't actually unmarshal the * bytes of the service contexts here. That is * done when they are actually requested via * get(int). */ private void createMapFromInputStream(InputStream is) { orb = (ORB)(is.orb()) ; if (orb.serviceContextDebugFlag) dprint( "Constructing ServiceContexts from input stream" ) ; int numValid = is.read_long() ; if (orb.serviceContextDebugFlag) dprint("Number of service contexts = " + numValid); for (int ctr = 0; ctr < numValid; ctr++) { int scId = is.read_long(); if (orb.serviceContextDebugFlag) dprint("Reading service context id " + scId); byte[] data = OctetSeqHelper.read(is); if (orb.serviceContextDebugFlag) dprint("Service context" + scId + " length: " + data.length); scMap.put(new Integer(scId), data); } }
Example 2
Source File: ServiceContexts.java From TencentKona-8 with GNU General Public License v2.0 | 6 votes |
/** * Given the input stream, this fills our service * context map. See the definition of scMap for * details. Creates a HashMap. * * Note that we don't actually unmarshal the * bytes of the service contexts here. That is * done when they are actually requested via * get(int). */ private void createMapFromInputStream(InputStream is) { orb = (ORB)(is.orb()) ; if (orb.serviceContextDebugFlag) dprint( "Constructing ServiceContexts from input stream" ) ; int numValid = is.read_long() ; if (orb.serviceContextDebugFlag) dprint("Number of service contexts = " + numValid); for (int ctr = 0; ctr < numValid; ctr++) { int scId = is.read_long(); if (orb.serviceContextDebugFlag) dprint("Reading service context id " + scId); byte[] data = OctetSeqHelper.read(is); if (orb.serviceContextDebugFlag) dprint("Service context" + scId + " length: " + data.length); scMap.put(new Integer(scId), data); } }
Example 3
Source File: ServiceContexts.java From jdk8u60 with GNU General Public License v2.0 | 6 votes |
/** * Given the input stream, this fills our service * context map. See the definition of scMap for * details. Creates a HashMap. * * Note that we don't actually unmarshal the * bytes of the service contexts here. That is * done when they are actually requested via * get(int). */ private void createMapFromInputStream(InputStream is) { orb = (ORB)(is.orb()) ; if (orb.serviceContextDebugFlag) dprint( "Constructing ServiceContexts from input stream" ) ; int numValid = is.read_long() ; if (orb.serviceContextDebugFlag) dprint("Number of service contexts = " + numValid); for (int ctr = 0; ctr < numValid; ctr++) { int scId = is.read_long(); if (orb.serviceContextDebugFlag) dprint("Reading service context id " + scId); byte[] data = OctetSeqHelper.read(is); if (orb.serviceContextDebugFlag) dprint("Service context" + scId + " length: " + data.length); scMap.put(new Integer(scId), data); } }
Example 4
Source File: ServiceContexts.java From JDKSourceCode1.8 with MIT License | 6 votes |
/** * Given the input stream, this fills our service * context map. See the definition of scMap for * details. Creates a HashMap. * * Note that we don't actually unmarshal the * bytes of the service contexts here. That is * done when they are actually requested via * get(int). */ private void createMapFromInputStream(InputStream is) { orb = (ORB)(is.orb()) ; if (orb.serviceContextDebugFlag) dprint( "Constructing ServiceContexts from input stream" ) ; int numValid = is.read_long() ; if (orb.serviceContextDebugFlag) dprint("Number of service contexts = " + numValid); for (int ctr = 0; ctr < numValid; ctr++) { int scId = is.read_long(); if (orb.serviceContextDebugFlag) dprint("Reading service context id " + scId); byte[] data = OctetSeqHelper.read(is); if (orb.serviceContextDebugFlag) dprint("Service context" + scId + " length: " + data.length); scMap.put(new Integer(scId), data); } }
Example 5
Source File: ServiceContexts.java From openjdk-jdk8u with GNU General Public License v2.0 | 6 votes |
/** * Given the input stream, this fills our service * context map. See the definition of scMap for * details. Creates a HashMap. * * Note that we don't actually unmarshal the * bytes of the service contexts here. That is * done when they are actually requested via * get(int). */ private void createMapFromInputStream(InputStream is) { orb = (ORB)(is.orb()) ; if (orb.serviceContextDebugFlag) dprint( "Constructing ServiceContexts from input stream" ) ; int numValid = is.read_long() ; if (orb.serviceContextDebugFlag) dprint("Number of service contexts = " + numValid); for (int ctr = 0; ctr < numValid; ctr++) { int scId = is.read_long(); if (orb.serviceContextDebugFlag) dprint("Reading service context id " + scId); byte[] data = OctetSeqHelper.read(is); if (orb.serviceContextDebugFlag) dprint("Service context" + scId + " length: " + data.length); scMap.put(new Integer(scId), data); } }
Example 6
Source File: ServiceContexts.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 6 votes |
/** * Given the input stream, this fills our service * context map. See the definition of scMap for * details. Creates a HashMap. * * Note that we don't actually unmarshal the * bytes of the service contexts here. That is * done when they are actually requested via * get(int). */ private void createMapFromInputStream(InputStream is) { orb = (ORB)(is.orb()) ; if (orb.serviceContextDebugFlag) dprint( "Constructing ServiceContexts from input stream" ) ; int numValid = is.read_long() ; if (orb.serviceContextDebugFlag) dprint("Number of service contexts = " + numValid); for (int ctr = 0; ctr < numValid; ctr++) { int scId = is.read_long(); if (orb.serviceContextDebugFlag) dprint("Reading service context id " + scId); byte[] data = OctetSeqHelper.read(is); if (orb.serviceContextDebugFlag) dprint("Service context" + scId + " length: " + data.length); scMap.put(new Integer(scId), data); } }
Example 7
Source File: ServiceContexts.java From openjdk-jdk9 with GNU General Public License v2.0 | 6 votes |
/** * Given the input stream, this fills our service * context map. See the definition of scMap for * details. Creates a HashMap. * * Note that we don't actually unmarshal the * bytes of the service contexts here. That is * done when they are actually requested via * get(int). */ private void createMapFromInputStream(InputStream is) { orb = (ORB)(is.orb()) ; if (orb.serviceContextDebugFlag) dprint( "Constructing ServiceContexts from input stream" ) ; int numValid = is.read_long() ; if (orb.serviceContextDebugFlag) dprint("Number of service contexts = " + numValid); for (int ctr = 0; ctr < numValid; ctr++) { int scId = is.read_long(); if (orb.serviceContextDebugFlag) dprint("Reading service context id " + scId); byte[] data = OctetSeqHelper.read(is); if (orb.serviceContextDebugFlag) dprint("Service context" + scId + " length: " + data.length); scMap.put(new Integer(scId), data); } }
Example 8
Source File: ServiceContexts.java From hottub with GNU General Public License v2.0 | 6 votes |
/** * Given the input stream, this fills our service * context map. See the definition of scMap for * details. Creates a HashMap. * * Note that we don't actually unmarshal the * bytes of the service contexts here. That is * done when they are actually requested via * get(int). */ private void createMapFromInputStream(InputStream is) { orb = (ORB)(is.orb()) ; if (orb.serviceContextDebugFlag) dprint( "Constructing ServiceContexts from input stream" ) ; int numValid = is.read_long() ; if (orb.serviceContextDebugFlag) dprint("Number of service contexts = " + numValid); for (int ctr = 0; ctr < numValid; ctr++) { int scId = is.read_long(); if (orb.serviceContextDebugFlag) dprint("Reading service context id " + scId); byte[] data = OctetSeqHelper.read(is); if (orb.serviceContextDebugFlag) dprint("Service context" + scId + " length: " + data.length); scMap.put(new Integer(scId), data); } }
Example 9
Source File: ServiceContexts.java From openjdk-8-source with GNU General Public License v2.0 | 6 votes |
/** * Given the input stream, this fills our service * context map. See the definition of scMap for * details. Creates a HashMap. * * Note that we don't actually unmarshal the * bytes of the service contexts here. That is * done when they are actually requested via * get(int). */ private void createMapFromInputStream(InputStream is) { orb = (ORB)(is.orb()) ; if (orb.serviceContextDebugFlag) dprint( "Constructing ServiceContexts from input stream" ) ; int numValid = is.read_long() ; if (orb.serviceContextDebugFlag) dprint("Number of service contexts = " + numValid); for (int ctr = 0; ctr < numValid; ctr++) { int scId = is.read_long(); if (orb.serviceContextDebugFlag) dprint("Reading service context id " + scId); byte[] data = OctetSeqHelper.read(is); if (orb.serviceContextDebugFlag) dprint("Service context" + scId + " length: " + data.length); scMap.put(new Integer(scId), data); } }
Example 10
Source File: ServiceContexts.java From openjdk-8 with GNU General Public License v2.0 | 6 votes |
/** * Given the input stream, this fills our service * context map. See the definition of scMap for * details. Creates a HashMap. * * Note that we don't actually unmarshal the * bytes of the service contexts here. That is * done when they are actually requested via * get(int). */ private void createMapFromInputStream(InputStream is) { orb = (ORB)(is.orb()) ; if (orb.serviceContextDebugFlag) dprint( "Constructing ServiceContexts from input stream" ) ; int numValid = is.read_long() ; if (orb.serviceContextDebugFlag) dprint("Number of service contexts = " + numValid); for (int ctr = 0; ctr < numValid; ctr++) { int scId = is.read_long(); if (orb.serviceContextDebugFlag) dprint("Reading service context id " + scId); byte[] data = OctetSeqHelper.read(is); if (orb.serviceContextDebugFlag) dprint("Service context" + scId + " length: " + data.length); scMap.put(new Integer(scId), data); } }