com.sun.corba.se.impl.encoding.CDROutputStream Java Examples
The following examples show how to use
com.sun.corba.se.impl.encoding.CDROutputStream.
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: ReplyMessage_1_2.java From jdk1.8-source-analysis with Apache License 2.0 | 6 votes |
public void write(org.omg.CORBA.portable.OutputStream ostream) { super.write(ostream); ostream.write_ulong(this.request_id); ostream.write_long(this.reply_status); if (this.service_contexts != null) { service_contexts.write( (org.omg.CORBA_2_3.portable.OutputStream) ostream, GIOPVersion.V1_2); } else { ServiceContexts.writeNullServiceContext( (org.omg.CORBA_2_3.portable.OutputStream) ostream); } // CORBA formal 00-11-0 15.4.2.2 GIOP 1.2 body must be // aligned on an 8 octet boundary. // Ensures that the first write operation called from the stub code, // during body construction, would insert a header padding, such that // the body is aligned on an 8-octet boundary. ((CDROutputStream)ostream).setHeaderPadding(true); }
Example #2
Source File: IIOPProfileTemplateImpl.java From openjdk-8 with GNU General Public License v2.0 | 6 votes |
public void write( ObjectKeyTemplate okeyTemplate, ObjectId id, OutputStream os) { giopVersion.write( os ) ; primary.write( os ) ; // Note that this is NOT an encapsulation: do not marshal // the endianness flag. However, the length is required. // Note that this cannot be accomplished with a codec! // Use the byte order of the given stream OutputStream encapsulatedOS = sun.corba.OutputStreamFactory.newEncapsOutputStream( (ORB)os.orb(), ((CDROutputStream)os).isLittleEndian() ) ; okeyTemplate.write( id, encapsulatedOS ) ; EncapsulationUtility.writeOutputStream( encapsulatedOS, os ) ; if (giopVersion.getMinor() > 0) EncapsulationUtility.writeIdentifiableSequence( this, os ) ; }
Example #3
Source File: ReplyMessage_1_2.java From openjdk-8 with GNU General Public License v2.0 | 6 votes |
public void write(org.omg.CORBA.portable.OutputStream ostream) { super.write(ostream); ostream.write_ulong(this.request_id); ostream.write_long(this.reply_status); if (this.service_contexts != null) { service_contexts.write( (org.omg.CORBA_2_3.portable.OutputStream) ostream, GIOPVersion.V1_2); } else { ServiceContexts.writeNullServiceContext( (org.omg.CORBA_2_3.portable.OutputStream) ostream); } // CORBA formal 00-11-0 15.4.2.2 GIOP 1.2 body must be // aligned on an 8 octet boundary. // Ensures that the first write operation called from the stub code, // during body construction, would insert a header padding, such that // the body is aligned on an 8-octet boundary. ((CDROutputStream)ostream).setHeaderPadding(true); }
Example #4
Source File: IIOPProfileTemplateImpl.java From openjdk-8-source with GNU General Public License v2.0 | 6 votes |
public void write( ObjectKeyTemplate okeyTemplate, ObjectId id, OutputStream os) { giopVersion.write( os ) ; primary.write( os ) ; // Note that this is NOT an encapsulation: do not marshal // the endianness flag. However, the length is required. // Note that this cannot be accomplished with a codec! // Use the byte order of the given stream OutputStream encapsulatedOS = sun.corba.OutputStreamFactory.newEncapsOutputStream( (ORB)os.orb(), ((CDROutputStream)os).isLittleEndian() ) ; okeyTemplate.write( id, encapsulatedOS ) ; EncapsulationUtility.writeOutputStream( encapsulatedOS, os ) ; if (giopVersion.getMinor() > 0) EncapsulationUtility.writeIdentifiableSequence( this, os ) ; }
Example #5
Source File: ReplyMessage_1_2.java From openjdk-8-source with GNU General Public License v2.0 | 6 votes |
public void write(org.omg.CORBA.portable.OutputStream ostream) { super.write(ostream); ostream.write_ulong(this.request_id); ostream.write_long(this.reply_status); if (this.service_contexts != null) { service_contexts.write( (org.omg.CORBA_2_3.portable.OutputStream) ostream, GIOPVersion.V1_2); } else { ServiceContexts.writeNullServiceContext( (org.omg.CORBA_2_3.portable.OutputStream) ostream); } // CORBA formal 00-11-0 15.4.2.2 GIOP 1.2 body must be // aligned on an 8 octet boundary. // Ensures that the first write operation called from the stub code, // during body construction, would insert a header padding, such that // the body is aligned on an 8-octet boundary. ((CDROutputStream)ostream).setHeaderPadding(true); }
Example #6
Source File: IIOPProfileTemplateImpl.java From hottub with GNU General Public License v2.0 | 6 votes |
public void write( ObjectKeyTemplate okeyTemplate, ObjectId id, OutputStream os) { giopVersion.write( os ) ; primary.write( os ) ; // Note that this is NOT an encapsulation: do not marshal // the endianness flag. However, the length is required. // Note that this cannot be accomplished with a codec! // Use the byte order of the given stream OutputStream encapsulatedOS = sun.corba.OutputStreamFactory.newEncapsOutputStream( (ORB)os.orb(), ((CDROutputStream)os).isLittleEndian() ) ; okeyTemplate.write( id, encapsulatedOS ) ; EncapsulationUtility.writeOutputStream( encapsulatedOS, os ) ; if (giopVersion.getMinor() > 0) EncapsulationUtility.writeIdentifiableSequence( this, os ) ; }
Example #7
Source File: ReplyMessage_1_2.java From hottub with GNU General Public License v2.0 | 6 votes |
public void write(org.omg.CORBA.portable.OutputStream ostream) { super.write(ostream); ostream.write_ulong(this.request_id); ostream.write_long(this.reply_status); if (this.service_contexts != null) { service_contexts.write( (org.omg.CORBA_2_3.portable.OutputStream) ostream, GIOPVersion.V1_2); } else { ServiceContexts.writeNullServiceContext( (org.omg.CORBA_2_3.portable.OutputStream) ostream); } // CORBA formal 00-11-0 15.4.2.2 GIOP 1.2 body must be // aligned on an 8 octet boundary. // Ensures that the first write operation called from the stub code, // during body construction, would insert a header padding, such that // the body is aligned on an 8-octet boundary. ((CDROutputStream)ostream).setHeaderPadding(true); }
Example #8
Source File: IIOPProfileTemplateImpl.java From openjdk-jdk9 with GNU General Public License v2.0 | 6 votes |
public void write( ObjectKeyTemplate okeyTemplate, ObjectId id, OutputStream os) { giopVersion.write( os ) ; primary.write( os ) ; // Note that this is NOT an encapsulation: do not marshal // the endianness flag. However, the length is required. // Note that this cannot be accomplished with a codec! // Use the byte order of the given stream OutputStream encapsulatedOS = sun.corba.OutputStreamFactory.newEncapsOutputStream( (ORB)os.orb(), ((CDROutputStream)os).isLittleEndian() ) ; okeyTemplate.write( id, encapsulatedOS ) ; EncapsulationUtility.writeOutputStream( encapsulatedOS, os ) ; if (giopVersion.getMinor() > 0) EncapsulationUtility.writeIdentifiableSequence( this, os ) ; }
Example #9
Source File: ReplyMessage_1_2.java From openjdk-jdk9 with GNU General Public License v2.0 | 6 votes |
public void write(org.omg.CORBA.portable.OutputStream ostream) { super.write(ostream); ostream.write_ulong(this.request_id); ostream.write_long(this.reply_status); if (this.service_contexts != null) { service_contexts.write( (org.omg.CORBA_2_3.portable.OutputStream) ostream, GIOPVersion.V1_2); } else { ServiceContexts.writeNullServiceContext( (org.omg.CORBA_2_3.portable.OutputStream) ostream); } // CORBA formal 00-11-0 15.4.2.2 GIOP 1.2 body must be // aligned on an 8 octet boundary. // Ensures that the first write operation called from the stub code, // during body construction, would insert a header padding, such that // the body is aligned on an 8-octet boundary. ((CDROutputStream)ostream).setHeaderPadding(true); }
Example #10
Source File: IIOPProfileTemplateImpl.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 6 votes |
public void write( ObjectKeyTemplate okeyTemplate, ObjectId id, OutputStream os) { giopVersion.write( os ) ; primary.write( os ) ; // Note that this is NOT an encapsulation: do not marshal // the endianness flag. However, the length is required. // Note that this cannot be accomplished with a codec! // Use the byte order of the given stream OutputStream encapsulatedOS = sun.corba.OutputStreamFactory.newEncapsOutputStream( (ORB)os.orb(), ((CDROutputStream)os).isLittleEndian() ) ; okeyTemplate.write( id, encapsulatedOS ) ; EncapsulationUtility.writeOutputStream( encapsulatedOS, os ) ; if (giopVersion.getMinor() > 0) EncapsulationUtility.writeIdentifiableSequence( this, os ) ; }
Example #11
Source File: ReplyMessage_1_2.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 6 votes |
public void write(org.omg.CORBA.portable.OutputStream ostream) { super.write(ostream); ostream.write_ulong(this.request_id); ostream.write_long(this.reply_status); if (this.service_contexts != null) { service_contexts.write( (org.omg.CORBA_2_3.portable.OutputStream) ostream, GIOPVersion.V1_2); } else { ServiceContexts.writeNullServiceContext( (org.omg.CORBA_2_3.portable.OutputStream) ostream); } // CORBA formal 00-11-0 15.4.2.2 GIOP 1.2 body must be // aligned on an 8 octet boundary. // Ensures that the first write operation called from the stub code, // during body construction, would insert a header padding, such that // the body is aligned on an 8-octet boundary. ((CDROutputStream)ostream).setHeaderPadding(true); }
Example #12
Source File: IIOPProfileTemplateImpl.java From openjdk-jdk8u with GNU General Public License v2.0 | 6 votes |
public void write( ObjectKeyTemplate okeyTemplate, ObjectId id, OutputStream os) { giopVersion.write( os ) ; primary.write( os ) ; // Note that this is NOT an encapsulation: do not marshal // the endianness flag. However, the length is required. // Note that this cannot be accomplished with a codec! // Use the byte order of the given stream OutputStream encapsulatedOS = sun.corba.OutputStreamFactory.newEncapsOutputStream( (ORB)os.orb(), ((CDROutputStream)os).isLittleEndian() ) ; okeyTemplate.write( id, encapsulatedOS ) ; EncapsulationUtility.writeOutputStream( encapsulatedOS, os ) ; if (giopVersion.getMinor() > 0) EncapsulationUtility.writeIdentifiableSequence( this, os ) ; }
Example #13
Source File: ReplyMessage_1_2.java From openjdk-jdk8u with GNU General Public License v2.0 | 6 votes |
public void write(org.omg.CORBA.portable.OutputStream ostream) { super.write(ostream); ostream.write_ulong(this.request_id); ostream.write_long(this.reply_status); if (this.service_contexts != null) { service_contexts.write( (org.omg.CORBA_2_3.portable.OutputStream) ostream, GIOPVersion.V1_2); } else { ServiceContexts.writeNullServiceContext( (org.omg.CORBA_2_3.portable.OutputStream) ostream); } // CORBA formal 00-11-0 15.4.2.2 GIOP 1.2 body must be // aligned on an 8 octet boundary. // Ensures that the first write operation called from the stub code, // during body construction, would insert a header padding, such that // the body is aligned on an 8-octet boundary. ((CDROutputStream)ostream).setHeaderPadding(true); }
Example #14
Source File: IIOPProfileTemplateImpl.java From JDKSourceCode1.8 with MIT License | 6 votes |
public void write( ObjectKeyTemplate okeyTemplate, ObjectId id, OutputStream os) { giopVersion.write( os ) ; primary.write( os ) ; // Note that this is NOT an encapsulation: do not marshal // the endianness flag. However, the length is required. // Note that this cannot be accomplished with a codec! // Use the byte order of the given stream OutputStream encapsulatedOS = sun.corba.OutputStreamFactory.newEncapsOutputStream( (ORB)os.orb(), ((CDROutputStream)os).isLittleEndian() ) ; okeyTemplate.write( id, encapsulatedOS ) ; EncapsulationUtility.writeOutputStream( encapsulatedOS, os ) ; if (giopVersion.getMinor() > 0) EncapsulationUtility.writeIdentifiableSequence( this, os ) ; }
Example #15
Source File: ReplyMessage_1_2.java From JDKSourceCode1.8 with MIT License | 6 votes |
public void write(org.omg.CORBA.portable.OutputStream ostream) { super.write(ostream); ostream.write_ulong(this.request_id); ostream.write_long(this.reply_status); if (this.service_contexts != null) { service_contexts.write( (org.omg.CORBA_2_3.portable.OutputStream) ostream, GIOPVersion.V1_2); } else { ServiceContexts.writeNullServiceContext( (org.omg.CORBA_2_3.portable.OutputStream) ostream); } // CORBA formal 00-11-0 15.4.2.2 GIOP 1.2 body must be // aligned on an 8 octet boundary. // Ensures that the first write operation called from the stub code, // during body construction, would insert a header padding, such that // the body is aligned on an 8-octet boundary. ((CDROutputStream)ostream).setHeaderPadding(true); }
Example #16
Source File: IIOPProfileTemplateImpl.java From jdk8u60 with GNU General Public License v2.0 | 6 votes |
public void write( ObjectKeyTemplate okeyTemplate, ObjectId id, OutputStream os) { giopVersion.write( os ) ; primary.write( os ) ; // Note that this is NOT an encapsulation: do not marshal // the endianness flag. However, the length is required. // Note that this cannot be accomplished with a codec! // Use the byte order of the given stream OutputStream encapsulatedOS = sun.corba.OutputStreamFactory.newEncapsOutputStream( (ORB)os.orb(), ((CDROutputStream)os).isLittleEndian() ) ; okeyTemplate.write( id, encapsulatedOS ) ; EncapsulationUtility.writeOutputStream( encapsulatedOS, os ) ; if (giopVersion.getMinor() > 0) EncapsulationUtility.writeIdentifiableSequence( this, os ) ; }
Example #17
Source File: ReplyMessage_1_2.java From TencentKona-8 with GNU General Public License v2.0 | 6 votes |
public void write(org.omg.CORBA.portable.OutputStream ostream) { super.write(ostream); ostream.write_ulong(this.request_id); ostream.write_long(this.reply_status); if (this.service_contexts != null) { service_contexts.write( (org.omg.CORBA_2_3.portable.OutputStream) ostream, GIOPVersion.V1_2); } else { ServiceContexts.writeNullServiceContext( (org.omg.CORBA_2_3.portable.OutputStream) ostream); } // CORBA formal 00-11-0 15.4.2.2 GIOP 1.2 body must be // aligned on an 8 octet boundary. // Ensures that the first write operation called from the stub code, // during body construction, would insert a header padding, such that // the body is aligned on an 8-octet boundary. ((CDROutputStream)ostream).setHeaderPadding(true); }
Example #18
Source File: ReplyMessage_1_2.java From jdk8u60 with GNU General Public License v2.0 | 6 votes |
public void write(org.omg.CORBA.portable.OutputStream ostream) { super.write(ostream); ostream.write_ulong(this.request_id); ostream.write_long(this.reply_status); if (this.service_contexts != null) { service_contexts.write( (org.omg.CORBA_2_3.portable.OutputStream) ostream, GIOPVersion.V1_2); } else { ServiceContexts.writeNullServiceContext( (org.omg.CORBA_2_3.portable.OutputStream) ostream); } // CORBA formal 00-11-0 15.4.2.2 GIOP 1.2 body must be // aligned on an 8 octet boundary. // Ensures that the first write operation called from the stub code, // during body construction, would insert a header padding, such that // the body is aligned on an 8-octet boundary. ((CDROutputStream)ostream).setHeaderPadding(true); }
Example #19
Source File: IIOPProfileTemplateImpl.java From jdk1.8-source-analysis with Apache License 2.0 | 6 votes |
public void write( ObjectKeyTemplate okeyTemplate, ObjectId id, OutputStream os) { giopVersion.write( os ) ; primary.write( os ) ; // Note that this is NOT an encapsulation: do not marshal // the endianness flag. However, the length is required. // Note that this cannot be accomplished with a codec! // Use the byte order of the given stream OutputStream encapsulatedOS = sun.corba.OutputStreamFactory.newEncapsOutputStream( (ORB)os.orb(), ((CDROutputStream)os).isLittleEndian() ) ; okeyTemplate.write( id, encapsulatedOS ) ; EncapsulationUtility.writeOutputStream( encapsulatedOS, os ) ; if (giopVersion.getMinor() > 0) EncapsulationUtility.writeIdentifiableSequence( this, os ) ; }
Example #20
Source File: IIOPProfileTemplateImpl.java From TencentKona-8 with GNU General Public License v2.0 | 6 votes |
public void write( ObjectKeyTemplate okeyTemplate, ObjectId id, OutputStream os) { giopVersion.write( os ) ; primary.write( os ) ; // Note that this is NOT an encapsulation: do not marshal // the endianness flag. However, the length is required. // Note that this cannot be accomplished with a codec! // Use the byte order of the given stream OutputStream encapsulatedOS = sun.corba.OutputStreamFactory.newEncapsOutputStream( (ORB)os.orb(), ((CDROutputStream)os).isLittleEndian() ) ; okeyTemplate.write( id, encapsulatedOS ) ; EncapsulationUtility.writeOutputStream( encapsulatedOS, os ) ; if (giopVersion.getMinor() > 0) EncapsulationUtility.writeIdentifiableSequence( this, os ) ; }
Example #21
Source File: RequestMessage_1_2.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
public void write(org.omg.CORBA.portable.OutputStream ostream) { super.write(ostream); ostream.write_ulong(this.request_id); ostream.write_octet(this.response_flags); nullCheck(this.reserved); if (this.reserved.length != (3)) { throw wrapper.badReservedLength( org.omg.CORBA.CompletionStatus.COMPLETED_MAYBE); } for (int _i0 = 0;_i0 < (3); ++_i0) { ostream.write_octet(this.reserved[_i0]); } nullCheck(this.target); TargetAddressHelper.write(ostream, this.target); ostream.write_string(this.operation); if (this.service_contexts != null) { service_contexts.write( (org.omg.CORBA_2_3.portable.OutputStream) ostream, GIOPVersion.V1_2); } else { ServiceContexts.writeNullServiceContext( (org.omg.CORBA_2_3.portable.OutputStream) ostream); } // CORBA formal 00-11-0 15.4.2.2 GIOP 1.2 body must be // aligned on an 8 octet boundary. // Ensures that the first write operation called from the stub code, // during body construction, would insert a header padding, such that // the body is aligned on an 8-octet boundary. ((CDROutputStream)ostream).setHeaderPadding(true); }
Example #22
Source File: EncapsulationUtility.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
/** Helper method that is used to extract data from an output * stream and write the data to another output stream. Defined * as static so that it can be used in another class. */ static public void writeOutputStream( OutputStream dataStream, OutputStream os ) { byte[] data = ((CDROutputStream)dataStream).toByteArray() ; os.write_long( data.length ) ; os.write_octet_array( data, 0, data.length ) ; }
Example #23
Source File: TypeCodeImpl.java From hottub with GNU General Public License v2.0 | 5 votes |
public static CDROutputStream newOutputStream(ORB orb) { TypeCodeOutputStream tcos = sun.corba.OutputStreamFactory.newTypeCodeOutputStream(orb); //if (debug) System.out.println("Created TypeCodeOutputStream " + tcos + // " with no parent"); return tcos; }
Example #24
Source File: TypeCodeImpl.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
public static CDROutputStream newOutputStream(ORB orb) { TypeCodeOutputStream tcos = sun.corba.OutputStreamFactory.newTypeCodeOutputStream(orb); //if (debug) System.out.println("Created TypeCodeOutputStream " + tcos + // " with no parent"); return tcos; }
Example #25
Source File: RequestMessage_1_2.java From hottub with GNU General Public License v2.0 | 5 votes |
public void write(org.omg.CORBA.portable.OutputStream ostream) { super.write(ostream); ostream.write_ulong(this.request_id); ostream.write_octet(this.response_flags); nullCheck(this.reserved); if (this.reserved.length != (3)) { throw wrapper.badReservedLength( org.omg.CORBA.CompletionStatus.COMPLETED_MAYBE); } for (int _i0 = 0;_i0 < (3); ++_i0) { ostream.write_octet(this.reserved[_i0]); } nullCheck(this.target); TargetAddressHelper.write(ostream, this.target); ostream.write_string(this.operation); if (this.service_contexts != null) { service_contexts.write( (org.omg.CORBA_2_3.portable.OutputStream) ostream, GIOPVersion.V1_2); } else { ServiceContexts.writeNullServiceContext( (org.omg.CORBA_2_3.portable.OutputStream) ostream); } // CORBA formal 00-11-0 15.4.2.2 GIOP 1.2 body must be // aligned on an 8 octet boundary. // Ensures that the first write operation called from the stub code, // during body construction, would insert a header padding, such that // the body is aligned on an 8-octet boundary. ((CDROutputStream)ostream).setHeaderPadding(true); }
Example #26
Source File: TypeCodeOutputStream.java From hottub with GNU General Public License v2.0 | 5 votes |
public static TypeCodeOutputStream wrapOutputStream(OutputStream os) { boolean littleEndian = ((os instanceof CDROutputStream) ? ((CDROutputStream)os).isLittleEndian() : false); TypeCodeOutputStream tos = sun.corba.OutputStreamFactory.newTypeCodeOutputStream((ORB)os.orb(), littleEndian); tos.setEnclosingOutputStream(os); //if (TypeCodeImpl.debug) System.out.println("Created TypeCodeOutputStream " + tos + " with parent " + os); return tos; }
Example #27
Source File: EncapsulationUtility.java From hottub with GNU General Public License v2.0 | 5 votes |
/** Helper method that is used to extract data from an output * stream and write the data to another output stream. Defined * as static so that it can be used in another class. */ static public void writeOutputStream( OutputStream dataStream, OutputStream os ) { byte[] data = ((CDROutputStream)dataStream).toByteArray() ; os.write_long( data.length ) ; os.write_octet_array( data, 0, data.length ) ; }
Example #28
Source File: TypeCodeImpl.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
public static CDROutputStream newOutputStream(ORB orb) { TypeCodeOutputStream tcos = sun.corba.OutputStreamFactory.newTypeCodeOutputStream(orb); //if (debug) System.out.println("Created TypeCodeOutputStream " + tcos + // " with no parent"); return tcos; }
Example #29
Source File: EncapsulationUtility.java From jdk1.8-source-analysis with Apache License 2.0 | 5 votes |
/** Helper method that is used to extract data from an output * stream and write the data to another output stream. Defined * as static so that it can be used in another class. */ static public void writeOutputStream( OutputStream dataStream, OutputStream os ) { byte[] data = ((CDROutputStream)dataStream).toByteArray() ; os.write_long( data.length ) ; os.write_octet_array( data, 0, data.length ) ; }
Example #30
Source File: RequestMessage_1_2.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
public void write(org.omg.CORBA.portable.OutputStream ostream) { super.write(ostream); ostream.write_ulong(this.request_id); ostream.write_octet(this.response_flags); nullCheck(this.reserved); if (this.reserved.length != (3)) { throw wrapper.badReservedLength( org.omg.CORBA.CompletionStatus.COMPLETED_MAYBE); } for (int _i0 = 0;_i0 < (3); ++_i0) { ostream.write_octet(this.reserved[_i0]); } nullCheck(this.target); TargetAddressHelper.write(ostream, this.target); ostream.write_string(this.operation); if (this.service_contexts != null) { service_contexts.write( (org.omg.CORBA_2_3.portable.OutputStream) ostream, GIOPVersion.V1_2); } else { ServiceContexts.writeNullServiceContext( (org.omg.CORBA_2_3.portable.OutputStream) ostream); } // CORBA formal 00-11-0 15.4.2.2 GIOP 1.2 body must be // aligned on an 8 octet boundary. // Ensures that the first write operation called from the stub code, // during body construction, would insert a header padding, such that // the body is aligned on an 8-octet boundary. ((CDROutputStream)ostream).setHeaderPadding(true); }