GenericTaggedComponent.java revision 608:7e06bf1dcb09
1277325Sdim/*
2277325Sdim * Copyright (c) 2000, 2003, Oracle and/or its affiliates. All rights reserved.
3277325Sdim * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4277325Sdim *
5277325Sdim * This code is free software; you can redistribute it and/or modify it
6277325Sdim * under the terms of the GNU General Public License version 2 only, as
7277325Sdim * published by the Free Software Foundation.  Oracle designates this
8277325Sdim * particular file as subject to the "Classpath" exception as provided
9277325Sdim * by Oracle in the LICENSE file that accompanied this code.
10341825Sdim *
11277325Sdim * This code is distributed in the hope that it will be useful, but WITHOUT
12277325Sdim * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13277325Sdim * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
14314564Sdim * version 2 for more details (a copy is included in the LICENSE file that
15277325Sdim * accompanied this code).
16277325Sdim *
17277325Sdim * You should have received a copy of the GNU General Public License version
18277325Sdim * 2 along with this work; if not, write to the Free Software Foundation,
19277325Sdim * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20277325Sdim *
21277325Sdim * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22277325Sdim * or visit www.oracle.com if you need additional information or have any
23277325Sdim * questions.
24277325Sdim */
25277325Sdim
26288943Sdimpackage com.sun.corba.se.impl.ior;
27277325Sdim
28277325Sdimimport org.omg.CORBA.ORB ;
29277325Sdim
30341825Sdimimport org.omg.CORBA_2_3.portable.InputStream ;
31288943Sdimimport org.omg.CORBA_2_3.portable.OutputStream ;
32288943Sdim
33288943Sdimimport com.sun.corba.se.spi.ior.iiop.GIOPVersion ;
34288943Sdim
35288943Sdimimport com.sun.corba.se.spi.ior.TaggedComponent ;
36288943Sdim
37288943Sdim/**
38288943Sdim * @author
39288943Sdim */
40288943Sdimpublic class GenericTaggedComponent extends GenericIdentifiable
41288943Sdim    implements TaggedComponent
42288943Sdim{
43288943Sdim    public GenericTaggedComponent( int id, InputStream is )
44288943Sdim    {
45288943Sdim        super( id, is ) ;
46288943Sdim    }
47288943Sdim
48288943Sdim    public GenericTaggedComponent( int id, byte[] data )
49341825Sdim    {
50288943Sdim        super( id, data ) ;
51288943Sdim    }
52341825Sdim
53288943Sdim    /**
54288943Sdim     * @return org.omg.IOP.TaggedComponent
55288943Sdim     * @exception
56288943Sdim     * @author
57288943Sdim     */
58288943Sdim    public org.omg.IOP.TaggedComponent getIOPComponent( ORB orb )
59288943Sdim    {
60288943Sdim        return new org.omg.IOP.TaggedComponent( getId(),
61288943Sdim            getData() ) ;
62288943Sdim    }
63288943Sdim}
64288943Sdim