1 28 29 package com.caucho.iiop; 30 31 import org.omg.CORBA.TCKind ; 32 33 import java.io.IOException ; 34 35 public class AbstractBaseTypeCode extends TypeCodeImpl { 36 37 AbstractBaseTypeCode(TCKind kind) 38 { 39 super(kind); 40 } 41 42 45 public Object readValue(IiopReader reader) 46 throws IOException  47 { 48 boolean discriminator = reader.read_boolean(); 49 50 if (discriminator) { 51 throw new UnsupportedOperationException (); 53 } 54 else 55 return reader.read_value(); 56 } 57 } 58 | Popular Tags |