Java Code Examples for sun.corba.EncapsInputStreamFactory#newTypeCodeInputStream()
The following examples show how to use
sun.corba.EncapsInputStreamFactory#newTypeCodeInputStream() .
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: TypeCodeOutputStream.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
public org.omg.CORBA.portable.InputStream create_input_stream() { TypeCodeInputStream tcis = EncapsInputStreamFactory .newTypeCodeInputStream((ORB) orb(), getByteBuffer(), getIndex(), isLittleEndian(), getGIOPVersion()); //if (TypeCodeImpl.debug) { //System.out.println("Created TypeCodeInputStream " + tcis + " with no parent"); //tcis.printBuffer(); //} return tcis; }
Example 2
Source File: TypeCodeInputStream.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
public static TypeCodeInputStream readEncapsulation(InputStream is, org.omg.CORBA.ORB _orb) { // _REVISIT_ Would be nice if we didn't have to copy the buffer! TypeCodeInputStream encap; int encapLength = is.read_long(); // read off part of the buffer corresponding to the encapsulation byte[] encapBuffer = new byte[encapLength]; is.read_octet_array(encapBuffer, 0, encapBuffer.length); // create an encapsulation using the marshal buffer if (is instanceof CDRInputStream) { encap = EncapsInputStreamFactory.newTypeCodeInputStream((ORB) _orb, encapBuffer, encapBuffer.length, ((CDRInputStream) is).isLittleEndian(), ((CDRInputStream) is).getGIOPVersion()); } else { encap = EncapsInputStreamFactory.newTypeCodeInputStream((ORB) _orb, encapBuffer, encapBuffer.length); } encap.setEnclosingInputStream(is); encap.makeEncapsulation(); //if (TypeCodeImpl.debug) { //System.out.println("Created TypeCodeInputStream " + encap + " with parent " + is); //encap.printBuffer(); //} return encap; }
Example 3
Source File: TypeCodeOutputStream.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
public org.omg.CORBA.portable.InputStream create_input_stream() { TypeCodeInputStream tcis = EncapsInputStreamFactory .newTypeCodeInputStream((ORB) orb(), getByteBuffer(), getIndex(), isLittleEndian(), getGIOPVersion()); //if (TypeCodeImpl.debug) { //System.out.println("Created TypeCodeInputStream " + tcis + " with no parent"); //tcis.printBuffer(); //} return tcis; }
Example 4
Source File: TypeCodeInputStream.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
public static TypeCodeInputStream readEncapsulation(InputStream is, org.omg.CORBA.ORB _orb) { // _REVISIT_ Would be nice if we didn't have to copy the buffer! TypeCodeInputStream encap; int encapLength = is.read_long(); // read off part of the buffer corresponding to the encapsulation byte[] encapBuffer = new byte[encapLength]; is.read_octet_array(encapBuffer, 0, encapBuffer.length); // create an encapsulation using the marshal buffer if (is instanceof CDRInputStream) { encap = EncapsInputStreamFactory.newTypeCodeInputStream((ORB) _orb, encapBuffer, encapBuffer.length, ((CDRInputStream) is).isLittleEndian(), ((CDRInputStream) is).getGIOPVersion()); } else { encap = EncapsInputStreamFactory.newTypeCodeInputStream((ORB) _orb, encapBuffer, encapBuffer.length); } encap.setEnclosingInputStream(is); encap.makeEncapsulation(); //if (TypeCodeImpl.debug) { //System.out.println("Created TypeCodeInputStream " + encap + " with parent " + is); //encap.printBuffer(); //} return encap; }
Example 5
Source File: TypeCodeOutputStream.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
public org.omg.CORBA.portable.InputStream create_input_stream() { TypeCodeInputStream tcis = EncapsInputStreamFactory .newTypeCodeInputStream((ORB) orb(), getByteBuffer(), getIndex(), isLittleEndian(), getGIOPVersion()); //if (TypeCodeImpl.debug) { //System.out.println("Created TypeCodeInputStream " + tcis + " with no parent"); //tcis.printBuffer(); //} return tcis; }
Example 6
Source File: TypeCodeInputStream.java From hottub with GNU General Public License v2.0 | 5 votes |
public static TypeCodeInputStream readEncapsulation(InputStream is, org.omg.CORBA.ORB _orb) { // _REVISIT_ Would be nice if we didn't have to copy the buffer! TypeCodeInputStream encap; int encapLength = is.read_long(); // read off part of the buffer corresponding to the encapsulation byte[] encapBuffer = new byte[encapLength]; is.read_octet_array(encapBuffer, 0, encapBuffer.length); // create an encapsulation using the marshal buffer if (is instanceof CDRInputStream) { encap = EncapsInputStreamFactory.newTypeCodeInputStream((ORB) _orb, encapBuffer, encapBuffer.length, ((CDRInputStream) is).isLittleEndian(), ((CDRInputStream) is).getGIOPVersion()); } else { encap = EncapsInputStreamFactory.newTypeCodeInputStream((ORB) _orb, encapBuffer, encapBuffer.length); } encap.setEnclosingInputStream(is); encap.makeEncapsulation(); //if (TypeCodeImpl.debug) { //System.out.println("Created TypeCodeInputStream " + encap + " with parent " + is); //encap.printBuffer(); //} return encap; }
Example 7
Source File: TypeCodeOutputStream.java From hottub with GNU General Public License v2.0 | 5 votes |
public org.omg.CORBA.portable.InputStream create_input_stream() { TypeCodeInputStream tcis = EncapsInputStreamFactory .newTypeCodeInputStream((ORB) orb(), getByteBuffer(), getIndex(), isLittleEndian(), getGIOPVersion()); //if (TypeCodeImpl.debug) { //System.out.println("Created TypeCodeInputStream " + tcis + " with no parent"); //tcis.printBuffer(); //} return tcis; }
Example 8
Source File: TypeCodeInputStream.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
public static TypeCodeInputStream readEncapsulation(InputStream is, org.omg.CORBA.ORB _orb) { // _REVISIT_ Would be nice if we didn't have to copy the buffer! TypeCodeInputStream encap; int encapLength = is.read_long(); // read off part of the buffer corresponding to the encapsulation byte[] encapBuffer = new byte[encapLength]; is.read_octet_array(encapBuffer, 0, encapBuffer.length); // create an encapsulation using the marshal buffer if (is instanceof CDRInputStream) { encap = EncapsInputStreamFactory.newTypeCodeInputStream((ORB) _orb, encapBuffer, encapBuffer.length, ((CDRInputStream) is).isLittleEndian(), ((CDRInputStream) is).getGIOPVersion()); } else { encap = EncapsInputStreamFactory.newTypeCodeInputStream((ORB) _orb, encapBuffer, encapBuffer.length); } encap.setEnclosingInputStream(is); encap.makeEncapsulation(); //if (TypeCodeImpl.debug) { //System.out.println("Created TypeCodeInputStream " + encap + " with parent " + is); //encap.printBuffer(); //} return encap; }
Example 9
Source File: TypeCodeOutputStream.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
public org.omg.CORBA.portable.InputStream create_input_stream() { TypeCodeInputStream tcis = EncapsInputStreamFactory .newTypeCodeInputStream((ORB) orb(), getByteBuffer(), getIndex(), isLittleEndian(), getGIOPVersion()); //if (TypeCodeImpl.debug) { //System.out.println("Created TypeCodeInputStream " + tcis + " with no parent"); //tcis.printBuffer(); //} return tcis; }
Example 10
Source File: TypeCodeInputStream.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
public static TypeCodeInputStream readEncapsulation(InputStream is, org.omg.CORBA.ORB _orb) { // _REVISIT_ Would be nice if we didn't have to copy the buffer! TypeCodeInputStream encap; int encapLength = is.read_long(); // read off part of the buffer corresponding to the encapsulation byte[] encapBuffer = new byte[encapLength]; is.read_octet_array(encapBuffer, 0, encapBuffer.length); // create an encapsulation using the marshal buffer if (is instanceof CDRInputStream) { encap = EncapsInputStreamFactory.newTypeCodeInputStream((ORB) _orb, encapBuffer, encapBuffer.length, ((CDRInputStream) is).isLittleEndian(), ((CDRInputStream) is).getGIOPVersion()); } else { encap = EncapsInputStreamFactory.newTypeCodeInputStream((ORB) _orb, encapBuffer, encapBuffer.length); } encap.setEnclosingInputStream(is); encap.makeEncapsulation(); //if (TypeCodeImpl.debug) { //System.out.println("Created TypeCodeInputStream " + encap + " with parent " + is); //encap.printBuffer(); //} return encap; }
Example 11
Source File: TypeCodeOutputStream.java From jdk1.8-source-analysis with Apache License 2.0 | 5 votes |
public org.omg.CORBA.portable.InputStream create_input_stream() { TypeCodeInputStream tcis = EncapsInputStreamFactory .newTypeCodeInputStream((ORB) orb(), getByteBuffer(), getIndex(), isLittleEndian(), getGIOPVersion()); //if (TypeCodeImpl.debug) { //System.out.println("Created TypeCodeInputStream " + tcis + " with no parent"); //tcis.printBuffer(); //} return tcis; }
Example 12
Source File: TypeCodeInputStream.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
public static TypeCodeInputStream readEncapsulation(InputStream is, org.omg.CORBA.ORB _orb) { // _REVISIT_ Would be nice if we didn't have to copy the buffer! TypeCodeInputStream encap; int encapLength = is.read_long(); // read off part of the buffer corresponding to the encapsulation byte[] encapBuffer = new byte[encapLength]; is.read_octet_array(encapBuffer, 0, encapBuffer.length); // create an encapsulation using the marshal buffer if (is instanceof CDRInputStream) { encap = EncapsInputStreamFactory.newTypeCodeInputStream((ORB) _orb, encapBuffer, encapBuffer.length, ((CDRInputStream) is).isLittleEndian(), ((CDRInputStream) is).getGIOPVersion()); } else { encap = EncapsInputStreamFactory.newTypeCodeInputStream((ORB) _orb, encapBuffer, encapBuffer.length); } encap.setEnclosingInputStream(is); encap.makeEncapsulation(); //if (TypeCodeImpl.debug) { //System.out.println("Created TypeCodeInputStream " + encap + " with parent " + is); //encap.printBuffer(); //} return encap; }
Example 13
Source File: TypeCodeOutputStream.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
public org.omg.CORBA.portable.InputStream create_input_stream() { TypeCodeInputStream tcis = EncapsInputStreamFactory .newTypeCodeInputStream((ORB) orb(), getByteBuffer(), getIndex(), isLittleEndian(), getGIOPVersion()); //if (TypeCodeImpl.debug) { //System.out.println("Created TypeCodeInputStream " + tcis + " with no parent"); //tcis.printBuffer(); //} return tcis; }
Example 14
Source File: TypeCodeInputStream.java From JDKSourceCode1.8 with MIT License | 5 votes |
public static TypeCodeInputStream readEncapsulation(InputStream is, org.omg.CORBA.ORB _orb) { // _REVISIT_ Would be nice if we didn't have to copy the buffer! TypeCodeInputStream encap; int encapLength = is.read_long(); // read off part of the buffer corresponding to the encapsulation byte[] encapBuffer = new byte[encapLength]; is.read_octet_array(encapBuffer, 0, encapBuffer.length); // create an encapsulation using the marshal buffer if (is instanceof CDRInputStream) { encap = EncapsInputStreamFactory.newTypeCodeInputStream((ORB) _orb, encapBuffer, encapBuffer.length, ((CDRInputStream) is).isLittleEndian(), ((CDRInputStream) is).getGIOPVersion()); } else { encap = EncapsInputStreamFactory.newTypeCodeInputStream((ORB) _orb, encapBuffer, encapBuffer.length); } encap.setEnclosingInputStream(is); encap.makeEncapsulation(); //if (TypeCodeImpl.debug) { //System.out.println("Created TypeCodeInputStream " + encap + " with parent " + is); //encap.printBuffer(); //} return encap; }
Example 15
Source File: TypeCodeOutputStream.java From JDKSourceCode1.8 with MIT License | 5 votes |
public org.omg.CORBA.portable.InputStream create_input_stream() { TypeCodeInputStream tcis = EncapsInputStreamFactory .newTypeCodeInputStream((ORB) orb(), getByteBuffer(), getIndex(), isLittleEndian(), getGIOPVersion()); //if (TypeCodeImpl.debug) { //System.out.println("Created TypeCodeInputStream " + tcis + " with no parent"); //tcis.printBuffer(); //} return tcis; }
Example 16
Source File: TypeCodeInputStream.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
public static TypeCodeInputStream readEncapsulation(InputStream is, org.omg.CORBA.ORB _orb) { // _REVISIT_ Would be nice if we didn't have to copy the buffer! TypeCodeInputStream encap; int encapLength = is.read_long(); // read off part of the buffer corresponding to the encapsulation byte[] encapBuffer = new byte[encapLength]; is.read_octet_array(encapBuffer, 0, encapBuffer.length); // create an encapsulation using the marshal buffer if (is instanceof CDRInputStream) { encap = EncapsInputStreamFactory.newTypeCodeInputStream((ORB) _orb, encapBuffer, encapBuffer.length, ((CDRInputStream) is).isLittleEndian(), ((CDRInputStream) is).getGIOPVersion()); } else { encap = EncapsInputStreamFactory.newTypeCodeInputStream((ORB) _orb, encapBuffer, encapBuffer.length); } encap.setEnclosingInputStream(is); encap.makeEncapsulation(); //if (TypeCodeImpl.debug) { //System.out.println("Created TypeCodeInputStream " + encap + " with parent " + is); //encap.printBuffer(); //} return encap; }
Example 17
Source File: TypeCodeOutputStream.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
public org.omg.CORBA.portable.InputStream create_input_stream() { TypeCodeInputStream tcis = EncapsInputStreamFactory .newTypeCodeInputStream((ORB) orb(), getByteBuffer(), getIndex(), isLittleEndian(), getGIOPVersion()); //if (TypeCodeImpl.debug) { //System.out.println("Created TypeCodeInputStream " + tcis + " with no parent"); //tcis.printBuffer(); //} return tcis; }
Example 18
Source File: TypeCodeInputStream.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
public static TypeCodeInputStream readEncapsulation(InputStream is, org.omg.CORBA.ORB _orb) { // _REVISIT_ Would be nice if we didn't have to copy the buffer! TypeCodeInputStream encap; int encapLength = is.read_long(); // read off part of the buffer corresponding to the encapsulation byte[] encapBuffer = new byte[encapLength]; is.read_octet_array(encapBuffer, 0, encapBuffer.length); // create an encapsulation using the marshal buffer if (is instanceof CDRInputStream) { encap = EncapsInputStreamFactory.newTypeCodeInputStream((ORB) _orb, encapBuffer, encapBuffer.length, ((CDRInputStream) is).isLittleEndian(), ((CDRInputStream) is).getGIOPVersion()); } else { encap = EncapsInputStreamFactory.newTypeCodeInputStream((ORB) _orb, encapBuffer, encapBuffer.length); } encap.setEnclosingInputStream(is); encap.makeEncapsulation(); //if (TypeCodeImpl.debug) { //System.out.println("Created TypeCodeInputStream " + encap + " with parent " + is); //encap.printBuffer(); //} return encap; }
Example 19
Source File: TypeCodeOutputStream.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
public org.omg.CORBA.portable.InputStream create_input_stream() { TypeCodeInputStream tcis = EncapsInputStreamFactory .newTypeCodeInputStream((ORB) orb(), getByteBuffer(), getIndex(), isLittleEndian(), getGIOPVersion()); //if (TypeCodeImpl.debug) { //System.out.println("Created TypeCodeInputStream " + tcis + " with no parent"); //tcis.printBuffer(); //} return tcis; }
Example 20
Source File: TypeCodeInputStream.java From jdk1.8-source-analysis with Apache License 2.0 | 5 votes |
public static TypeCodeInputStream readEncapsulation(InputStream is, org.omg.CORBA.ORB _orb) { // _REVISIT_ Would be nice if we didn't have to copy the buffer! TypeCodeInputStream encap; int encapLength = is.read_long(); // read off part of the buffer corresponding to the encapsulation byte[] encapBuffer = new byte[encapLength]; is.read_octet_array(encapBuffer, 0, encapBuffer.length); // create an encapsulation using the marshal buffer if (is instanceof CDRInputStream) { encap = EncapsInputStreamFactory.newTypeCodeInputStream((ORB) _orb, encapBuffer, encapBuffer.length, ((CDRInputStream) is).isLittleEndian(), ((CDRInputStream) is).getGIOPVersion()); } else { encap = EncapsInputStreamFactory.newTypeCodeInputStream((ORB) _orb, encapBuffer, encapBuffer.length); } encap.setEnclosingInputStream(is); encap.makeEncapsulation(); //if (TypeCodeImpl.debug) { //System.out.println("Created TypeCodeInputStream " + encap + " with parent " + is); //encap.printBuffer(); //} return encap; }