001 package org.omg.Security; 002 003 004 /** 005 * org/omg/Security/OIDListHelper.java . 006 * Generated by the IDL-to-Java compiler (portable), version "3.2" 007 * from /home/iurt/rpm/BUILD/geronimo-spec-corba/src/main/idl/Security.idl 008 * Saturday, November 26, 2011 9:53:35 PM UTC 009 */ 010 011 abstract public class OIDListHelper 012 { 013 private static String _id = "IDL:omg.org/Security/OIDList:1.0"; 014 015 public static void insert (org.omg.CORBA.Any a, byte[][] that) 016 { 017 org.omg.CORBA.portable.OutputStream out = a.create_output_stream (); 018 a.type (type ()); 019 write (out, that); 020 a.read_value (out.create_input_stream (), type ()); 021 } 022 023 public static byte[][] extract (org.omg.CORBA.Any a) 024 { 025 return read (a.create_input_stream ()); 026 } 027 028 private static org.omg.CORBA.TypeCode __typeCode = null; 029 synchronized public static org.omg.CORBA.TypeCode type () 030 { 031 if (__typeCode == null) 032 { 033 __typeCode = org.omg.CORBA.ORB.init ().get_primitive_tc (org.omg.CORBA.TCKind.tk_octet); 034 __typeCode = org.omg.CORBA.ORB.init ().create_sequence_tc (0, __typeCode); 035 __typeCode = org.omg.CORBA.ORB.init ().create_alias_tc (org.omg.Security.OIDHelper.id (), "OID", __typeCode); 036 __typeCode = org.omg.CORBA.ORB.init ().create_sequence_tc (0, __typeCode); 037 __typeCode = org.omg.CORBA.ORB.init ().create_alias_tc (org.omg.Security.OIDListHelper.id (), "OIDList", __typeCode); 038 } 039 return __typeCode; 040 } 041 042 public static String id () 043 { 044 return _id; 045 } 046 047 public static byte[][] read (org.omg.CORBA.portable.InputStream istream) 048 { 049 byte value[][] = null; 050 int _len0 = istream.read_long (); 051 value = new byte[_len0][]; 052 for (int _o1 = 0;_o1 < value.length; ++_o1) 053 value[_o1] = org.omg.Security.OIDHelper.read (istream); 054 return value; 055 } 056 057 public static void write (org.omg.CORBA.portable.OutputStream ostream, byte[][] value) 058 { 059 ostream.write_long (value.length); 060 for (int _i0 = 0;_i0 < value.length; ++_i0) 061 org.omg.Security.OIDHelper.write (ostream, value[_i0]); 062 } 063 064 }