16 *
17 * You should have received a copy of the GNU General Public License version
18 * 2 along with this work; if not, write to the Free Software Foundation,
19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20 *
21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22 * or visit www.oracle.com if you need additional information or have any
23 * questions.
24 */
25
26 package com.sun.corba.se.impl.ior;
27
28 import java.util.Arrays ;
29
30 import org.omg.CORBA_2_3.portable.InputStream;
31 import org.omg.CORBA_2_3.portable.OutputStream;
32
33 import com.sun.corba.se.spi.ior.Identifiable ;
34
35 /**
36 * @author
37 * This is used for unknown components and profiles. A TAG_MULTICOMPONENT_PROFILE will be represented this way.
38 */
39 public abstract class GenericIdentifiable implements Identifiable
40 {
41 private int id;
42 private byte data[];
43
44 public GenericIdentifiable(int id, InputStream is)
45 {
46 this.id = id ;
47 data = EncapsulationUtility.readOctets( is ) ;
48 }
49
50 public int getId()
51 {
52 return id ;
53 }
54
55 public void write(OutputStream os)
56 {
|
16 *
17 * You should have received a copy of the GNU General Public License version
18 * 2 along with this work; if not, write to the Free Software Foundation,
19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20 *
21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22 * or visit www.oracle.com if you need additional information or have any
23 * questions.
24 */
25
26 package com.sun.corba.se.impl.ior;
27
28 import java.util.Arrays ;
29
30 import org.omg.CORBA_2_3.portable.InputStream;
31 import org.omg.CORBA_2_3.portable.OutputStream;
32
33 import com.sun.corba.se.spi.ior.Identifiable ;
34
35 /**
36 * This is used for unknown components and profiles. A TAG_MULTICOMPONENT_PROFILE will be represented this way.
37 */
38 public abstract class GenericIdentifiable implements Identifiable
39 {
40 private int id;
41 private byte data[];
42
43 public GenericIdentifiable(int id, InputStream is)
44 {
45 this.id = id ;
46 data = EncapsulationUtility.readOctets( is ) ;
47 }
48
49 public int getId()
50 {
51 return id ;
52 }
53
54 public void write(OutputStream os)
55 {
|